summaryrefslogtreecommitdiff
path: root/gutils.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-05-30 20:05:23 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-05-30 20:05:23 +0000
commite0b563603105e65890d0adc581d6c84cbf611ba9 (patch)
tree8ebacd67815b3b78f671a266bc0e8ced3f4e6612 /gutils.c
parent466305d0ca11da051e6d1be823681fd54c831c08 (diff)
downloadglib-e0b563603105e65890d0adc581d6c84cbf611ba9.tar.gz
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.
Diffstat (limited to 'gutils.c')
-rw-r--r--gutils.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gutils.c b/gutils.c
index f09715ac2..3b6659841 100644
--- a/gutils.c
+++ b/gutils.c
@@ -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);