mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +02:00
Merge from 2.4:
Sat May 8 23:02:26 2004 Matthias Clasen <maclas@gmx.de> Merge from 2.4: * glib/gutils.h: Remove vestigial g_get_codeset(). * glib/gutils.c (g_get_codeset): Call g_get_charset().
This commit is contained in:
committed by
Matthias Clasen
parent
b745e58abc
commit
1d4458c448
@@ -1230,18 +1230,11 @@ g_nullify_pointer (gpointer *nullify_location)
|
||||
gchar *
|
||||
g_get_codeset (void)
|
||||
{
|
||||
#ifdef HAVE_CODESET
|
||||
char *result = nl_langinfo (CODESET);
|
||||
return g_strdup (result);
|
||||
#else
|
||||
#ifdef G_PLATFORM_WIN32
|
||||
return g_strdup_printf ("CP%d", GetACP ());
|
||||
#else
|
||||
/* FIXME: Do something more intelligent based on setlocale (LC_CTYPE, NULL)
|
||||
*/
|
||||
return g_strdup ("ISO-8859-1");
|
||||
#endif
|
||||
#endif
|
||||
gchar *charset;
|
||||
|
||||
g_get_charset (&charset);
|
||||
|
||||
return charset;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
|
Reference in New Issue
Block a user