diff options
author | Jeremy Katz <katzj@redhat.com> | 2005-12-01 22:37:30 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2005-12-01 22:37:30 +0000 |
commit | 0752eba3e888daaeed985e0da2fa78f179719ba1 (patch) | |
tree | fbb725dbf4e5198c144b127edb0c3a84219d0d62 /loader2 | |
parent | bed24ce12ba920ff518d264eca8450714a15e268 (diff) | |
download | anaconda-0752eba3e888daaeed985e0da2fa78f179719ba1.tar.gz anaconda-0752eba3e888daaeed985e0da2fa78f179719ba1.tar.xz anaconda-0752eba3e888daaeed985e0da2fa78f179719ba1.zip |
2005-12-01 Jeremy Katz <katzj@redhat.com>
* loader2/loader.c (initializeConsole): Hack around the fact that
slang doesn't properly enable UTF-8 anymore (#174761)
Diffstat (limited to 'loader2')
-rw-r--r-- | loader2/loader.c | 8 |
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); |