Even if g_get_codeset() is currently commented out from gutils.h, fix it

2001-01-20  Tor Lillqvist  <tml@iki.fi>

	* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
	currently commented out from gutils.h, fix it to return the same
	CP%d value as g_get_charset().
This commit is contained in:
Tor Lillqvist 2001-01-20 22:26:32 +00:00 committed by Tor Lillqvist
parent 59ce63340a
commit 0030936be9
10 changed files with 50 additions and 10 deletions

View File

@ -1,3 +1,9 @@
2001-01-20 Tor Lillqvist <tml@iki.fi>
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
currently commented out from gutils.h, fix it to return the same
CP%d value as g_get_charset().
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
* gconvert.c: Fix typo.

View File

@ -1,3 +1,9 @@
2001-01-20 Tor Lillqvist <tml@iki.fi>
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
currently commented out from gutils.h, fix it to return the same
CP%d value as g_get_charset().
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
* gconvert.c: Fix typo.

View File

@ -1,3 +1,9 @@
2001-01-20 Tor Lillqvist <tml@iki.fi>
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
currently commented out from gutils.h, fix it to return the same
CP%d value as g_get_charset().
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
* gconvert.c: Fix typo.

View File

@ -1,3 +1,9 @@
2001-01-20 Tor Lillqvist <tml@iki.fi>
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
currently commented out from gutils.h, fix it to return the same
CP%d value as g_get_charset().
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
* gconvert.c: Fix typo.

View File

@ -1,3 +1,9 @@
2001-01-20 Tor Lillqvist <tml@iki.fi>
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
currently commented out from gutils.h, fix it to return the same
CP%d value as g_get_charset().
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
* gconvert.c: Fix typo.

View File

@ -1,3 +1,9 @@
2001-01-20 Tor Lillqvist <tml@iki.fi>
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
currently commented out from gutils.h, fix it to return the same
CP%d value as g_get_charset().
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
* gconvert.c: Fix typo.

View File

@ -1,3 +1,9 @@
2001-01-20 Tor Lillqvist <tml@iki.fi>
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
currently commented out from gutils.h, fix it to return the same
CP%d value as g_get_charset().
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
* gconvert.c: Fix typo.

View File

@ -1,3 +1,9 @@
2001-01-20 Tor Lillqvist <tml@iki.fi>
* gutils.c (g_get_codeset): (Win32) Even if g_get_codeset() is
currently commented out from gutils.h, fix it to return the same
CP%d value as g_get_charset().
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
* gconvert.c: Fix typo.

View File

@ -69,7 +69,6 @@
# include <windows.h>
# include <ctype.h>
# include <direct.h>
# include <io.h>
#endif /* G_OS_WIN32 */
#ifdef HAVE_CODESET
@ -994,10 +993,7 @@ g_get_codeset (void)
*/
return g_strdup ("ISO-8859-1");
#else
/* On Win32 we always use UTF-8. At least in GDK. SO should we
* therefore return that?
*/
return g_strdup ("UTF-8");
return g_strdup_printf ("CP%d", GetACP ());
#endif
#endif
}

View File

@ -69,7 +69,6 @@
# include <windows.h>
# include <ctype.h>
# include <direct.h>
# include <io.h>
#endif /* G_OS_WIN32 */
#ifdef HAVE_CODESET
@ -994,10 +993,7 @@ g_get_codeset (void)
*/
return g_strdup ("ISO-8859-1");
#else
/* On Win32 we always use UTF-8. At least in GDK. SO should we
* therefore return that?
*/
return g_strdup ("UTF-8");
return g_strdup_printf ("CP%d", GetACP ());
#endif
#endif
}