diff options
author | Matt Wilson <msw@redhat.com> | 2001-01-18 00:59:45 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-01-18 00:59:45 +0000 |
commit | 985a0ba47c6e76675d1394a7131752b349f5b2dc (patch) | |
tree | f5b7bd741b99a7b195af4380cc789765e1acd98b /loader/lang.c | |
parent | b06bd1392ce0518e33675be16662502a357f9452 (diff) | |
download | anaconda-985a0ba47c6e76675d1394a7131752b349f5b2dc.tar.gz anaconda-985a0ba47c6e76675d1394a7131752b349f5b2dc.tar.xz anaconda-985a0ba47c6e76675d1394a7131752b349f5b2dc.zip |
oops - this is generic code, pass a global for haveKon. Eew.
Diffstat (limited to 'loader/lang.c')
-rw-r--r-- | loader/lang.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/loader/lang.c b/loader/lang.c index 227b646d9..700e64b89 100644 --- a/loader/lang.c +++ b/loader/lang.c @@ -26,6 +26,8 @@ #define errorWindow(String) \ newtWinMessage(_("Error"), _("OK"), String, strerror (errno)); +extern int haveKon; + struct aString { unsigned int hash; short length; @@ -106,10 +108,8 @@ static void loadLanguageList(int flags) { code, keyboard, timezone) != 7) { logMessage("bad line %d in lang-table", lineNum); } else { -#ifndef INCLUDE_KON - if (!strcmp (name, "Japanese")) + if (!haveKon && !strcmp (name, "Japanese")) continue; -#endif languages[numLanguages].lang = strdup(name); languages[numLanguages].key = strdup(key); languages[numLanguages].font = strdup(sun); @@ -315,7 +315,7 @@ int chooseLanguage(char ** lang, int flags) { numStrings = allocedStrings = 0; } -#ifdef INCLUDE_KON + if (haveKon) { extern int continuing; extern void stopNewt(void); @@ -333,7 +333,6 @@ int chooseLanguage(char ** lang, int flags) { execv(FL_TESTING(flags) ? "./loader" : "/sbin/loader", args); } } -#endif loadLanguage (NULL, flags); if (languages[choice].map) |