mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
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:
parent
59ce63340a
commit
0030936be9
@ -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>
|
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gconvert.c: Fix typo.
|
* gconvert.c: Fix typo.
|
||||||
|
@ -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>
|
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gconvert.c: Fix typo.
|
* gconvert.c: Fix typo.
|
||||||
|
@ -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>
|
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gconvert.c: Fix typo.
|
* gconvert.c: Fix typo.
|
||||||
|
@ -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>
|
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gconvert.c: Fix typo.
|
* gconvert.c: Fix typo.
|
||||||
|
@ -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>
|
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gconvert.c: Fix typo.
|
* gconvert.c: Fix typo.
|
||||||
|
@ -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>
|
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gconvert.c: Fix typo.
|
* gconvert.c: Fix typo.
|
||||||
|
@ -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>
|
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gconvert.c: Fix typo.
|
* gconvert.c: Fix typo.
|
||||||
|
@ -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>
|
2001-01-19 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gconvert.c: Fix typo.
|
* gconvert.c: Fix typo.
|
||||||
|
@ -69,7 +69,6 @@
|
|||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# include <ctype.h>
|
# include <ctype.h>
|
||||||
# include <direct.h>
|
# include <direct.h>
|
||||||
# include <io.h>
|
|
||||||
#endif /* G_OS_WIN32 */
|
#endif /* G_OS_WIN32 */
|
||||||
|
|
||||||
#ifdef HAVE_CODESET
|
#ifdef HAVE_CODESET
|
||||||
@ -994,10 +993,7 @@ g_get_codeset (void)
|
|||||||
*/
|
*/
|
||||||
return g_strdup ("ISO-8859-1");
|
return g_strdup ("ISO-8859-1");
|
||||||
#else
|
#else
|
||||||
/* On Win32 we always use UTF-8. At least in GDK. SO should we
|
return g_strdup_printf ("CP%d", GetACP ());
|
||||||
* therefore return that?
|
|
||||||
*/
|
|
||||||
return g_strdup ("UTF-8");
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
6
gutils.c
6
gutils.c
@ -69,7 +69,6 @@
|
|||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# include <ctype.h>
|
# include <ctype.h>
|
||||||
# include <direct.h>
|
# include <direct.h>
|
||||||
# include <io.h>
|
|
||||||
#endif /* G_OS_WIN32 */
|
#endif /* G_OS_WIN32 */
|
||||||
|
|
||||||
#ifdef HAVE_CODESET
|
#ifdef HAVE_CODESET
|
||||||
@ -994,10 +993,7 @@ g_get_codeset (void)
|
|||||||
*/
|
*/
|
||||||
return g_strdup ("ISO-8859-1");
|
return g_strdup ("ISO-8859-1");
|
||||||
#else
|
#else
|
||||||
/* On Win32 we always use UTF-8. At least in GDK. SO should we
|
return g_strdup_printf ("CP%d", GetACP ());
|
||||||
* therefore return that?
|
|
||||||
*/
|
|
||||||
return g_strdup ("UTF-8");
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user