[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] [PATCH] Allow any UI language in the _AKP cookie
Hello.
I discovered that FreeMiNT only allowed _AKP languages from 0 to 5. Any
other language previously set in the initial _AKP cookie (from NVRAM)
was discarded and replaced by 0 (US).
Especially, this prevented XaAES t automatically load the correct
resources for the NVRAM language.
The attached patch fixes this issue. Please commit.
maxlang.patch
Allow any UI language in the _AKP cookie. Contributed by Vincent Riviere.
--
Vincent Rivière
diff -aurN -x CVS freemint.orig/sys/arch/init_mach.c freemint/sys/arch/init_mach.c
--- freemint.orig/sys/arch/init_mach.c 2012-12-23 21:25:35.812500000 +0100
+++ freemint/sys/arch/init_mach.c 2013-01-03 22:33:05.343750000 +0100
@@ -278,7 +278,7 @@
}
}
- if (gl_lang >= MAXLANG || gl_lang < 0)
+ if (gl_lang < 0)
gl_lang = 0;
return 0;
diff -aurN -x CVS freemint.orig/sys/mint/ktypes.h freemint/sys/mint/ktypes.h
--- freemint.orig/sys/mint/ktypes.h 2012-04-14 22:12:28.890625000 +0200
+++ freemint/sys/mint/ktypes.h 2013-01-03 22:33:17.000000000 +0100
@@ -118,7 +118,6 @@
short tosvers; /* the underlying TOS version */
short gl_lang; /* language preference */
-# define MAXLANG 6 /* languages supported */
short gl_kbd; /* default keyboard layout */
/* The path to the system directory