mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 17:38:54 +02:00
Move the g_locale_get_codeset() up in the header file to correspond to to
Tue May 30 16:01:32 2000 Owen Taylor <otaylor@redhat.com> * glib.h gutils.c: Move the g_locale_get_codeset() up in the header file to correspond to to comments about memory management. Rename to g_get_codeset() to avoid polluting the g_locale_* namespace, which probably would have g_locale_get_codeset (GLocale *locale). Add a doc comment.
This commit is contained in:
@@ -761,8 +761,16 @@ g_int_hash (gconstpointer v)
|
||||
return *(const gint*) v;
|
||||
}
|
||||
|
||||
/**
|
||||
* g_get_codeset:
|
||||
*
|
||||
* Get the codeset for the current locale.
|
||||
*
|
||||
* Return value: a newly allocated string containing the name
|
||||
* of the codeset. This string must be freed with g_free().
|
||||
**/
|
||||
gchar *
|
||||
g_locale_get_codeset (void)
|
||||
g_get_codeset (void)
|
||||
{
|
||||
#ifdef HAVE_CODESET
|
||||
char *result = nl_langinfo (CODESET);
|
||||
|
Reference in New Issue
Block a user