mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01: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:
parent
b745e58abc
commit
1d4458c448
@ -1,3 +1,10 @@
|
|||||||
|
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().
|
||||||
|
|
||||||
2004-05-06 Matthias Clasen <mclasen@redhat.com>
|
2004-05-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* configure.in: Bump version number to 2.5.0.
|
* configure.in: Bump version number to 2.5.0.
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
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().
|
||||||
|
|
||||||
2004-05-06 Matthias Clasen <mclasen@redhat.com>
|
2004-05-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* configure.in: Bump version number to 2.5.0.
|
* configure.in: Bump version number to 2.5.0.
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
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().
|
||||||
|
|
||||||
2004-05-06 Matthias Clasen <mclasen@redhat.com>
|
2004-05-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* configure.in: Bump version number to 2.5.0.
|
* configure.in: Bump version number to 2.5.0.
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
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().
|
||||||
|
|
||||||
2004-05-06 Matthias Clasen <mclasen@redhat.com>
|
2004-05-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* configure.in: Bump version number to 2.5.0.
|
* configure.in: Bump version number to 2.5.0.
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
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().
|
||||||
|
|
||||||
2004-05-06 Matthias Clasen <mclasen@redhat.com>
|
2004-05-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* configure.in: Bump version number to 2.5.0.
|
* configure.in: Bump version number to 2.5.0.
|
||||||
|
@ -1230,18 +1230,11 @@ g_nullify_pointer (gpointer *nullify_location)
|
|||||||
gchar *
|
gchar *
|
||||||
g_get_codeset (void)
|
g_get_codeset (void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_CODESET
|
gchar *charset;
|
||||||
char *result = nl_langinfo (CODESET);
|
|
||||||
return g_strdup (result);
|
g_get_charset (&charset);
|
||||||
#else
|
|
||||||
#ifdef G_PLATFORM_WIN32
|
return charset;
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
#ifdef ENABLE_NLS
|
||||||
|
@ -171,9 +171,6 @@ gchar* g_path_get_dirname (const gchar *file_name);
|
|||||||
/* Set the pointer at the specified location to NULL */
|
/* Set the pointer at the specified location to NULL */
|
||||||
void g_nullify_pointer (gpointer *nullify_location);
|
void g_nullify_pointer (gpointer *nullify_location);
|
||||||
|
|
||||||
/* Get the codeset for the current locale */
|
|
||||||
/* gchar * g_get_codeset (void); */
|
|
||||||
|
|
||||||
/* return the environment string for the variable. The returned memory
|
/* return the environment string for the variable. The returned memory
|
||||||
* must not be freed. */
|
* must not be freed. */
|
||||||
G_CONST_RETURN gchar* g_getenv (const gchar *variable);
|
G_CONST_RETURN gchar* g_getenv (const gchar *variable);
|
||||||
|
Loading…
Reference in New Issue
Block a user