Simplify greatly. Instead of hardcoding a large switch statement, just ask

2007-01-15  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c (g_win32_getlocale): Simplify greatly. Instead of
	hardcoding a large switch statement, just ask Windows for the
	ISO639 and ISO3166 codes. Tack on @Latn or @Cyrl for those
	languages which can alternatively be written in Latin or Cyrillic.


svn path=/trunk/; revision=5257
This commit is contained in:
Tor Lillqvist
2007-01-15 01:13:57 +00:00
committed by Tor Lillqvist
parent 38b9221961
commit 1535446885
2 changed files with 40 additions and 912 deletions

View File

@@ -1,3 +1,10 @@
2007-01-15 Tor Lillqvist <tml@novell.com>
* glib/gwin32.c (g_win32_getlocale): Simplify greatly. Instead of
hardcoding a large switch statement, just ask Windows for the
ISO639 and ISO3166 codes. Tack on @Latn or @Cyrl for those
languages which can alternatively be written in Latin or Cyrillic.
2007-01-12 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c: Rework the handling of invalid