summaryrefslogtreecommitdiffstats
path: root/loader2
diff options
context:
space:
mode:
Diffstat (limited to 'loader2')
-rw-r--r--loader2/loader.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/loader2/loader.c b/loader2/loader.c
index b8dae9adc..c9cbab35f 100644
--- a/loader2/loader.c
+++ b/loader2/loader.c
@@ -35,6 +35,9 @@
#include <syslog.h>
#include <unistd.h>
+/* I hate slang */
+#include <slang/slang.h>
+
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -203,6 +206,10 @@ void initializeConsole(moduleList modLoaded, moduleDeps modDeps,
/* enable UTF-8 console */
printf("\033%%G");
fflush(stdout);
+
+ /* hack around the fact that slang doesn't auto-set UTF-8 mode #174761 */
+ SLutf8_enable(1);
+
isysLoadFont();
if (!FL_TESTING(flags))
isysSetUnicodeKeymap();
@@ -1236,7 +1243,6 @@ int main(int argc, char ** argv) {
memset(&loaderData, 0, sizeof(loaderData));
-
extraArgs[0] = NULL;
flags = parseCmdLineFlags(flags, &loaderData, cmdLine);