+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.
+
Mon May 29 14:10:35 2000 Owen Taylor <otaylor@redhat.com>
* gutils.c (g_locale_get_codeset): Add function to get the
+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.
+
Mon May 29 14:10:35 2000 Owen Taylor <otaylor@redhat.com>
* gutils.c (g_locale_get_codeset): Add function to get the
+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.
+
Mon May 29 14:10:35 2000 Owen Taylor <otaylor@redhat.com>
* gutils.c (g_locale_get_codeset): Add function to get the
+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.
+
Mon May 29 14:10:35 2000 Owen Taylor <otaylor@redhat.com>
* gutils.c (g_locale_get_codeset): Add function to get the
+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.
+
Mon May 29 14:10:35 2000 Owen Taylor <otaylor@redhat.com>
* gutils.c (g_locale_get_codeset): Add function to get the
+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.
+
Mon May 29 14:10:35 2000 Owen Taylor <otaylor@redhat.com>
* gutils.c (g_locale_get_codeset): Add function to get the
+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.
+
Mon May 29 14:10:35 2000 Owen Taylor <otaylor@redhat.com>
* gutils.c (g_locale_get_codeset): Add function to get the
+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.
+
Mon May 29 14:10:35 2000 Owen Taylor <otaylor@redhat.com>
* gutils.c (g_locale_get_codeset): Add function to get the
gchar* g_dirname (const gchar *file_name);
gchar* g_get_current_dir (void);
+/* Get the codeset for the current locale */
+gchar * g_get_codeset (void);
+
/* return the environment string for the variable. The returned memory
* must not be freed. */
gchar* g_getenv (const gchar *variable);
-gchar * g_locale_get_codeset (void);
-
/* we use a GLib function as a replacement for ATEXIT, so
* the programmer is not required to check the return value
* (if there is any in the implementation) and doesn't encounter
gchar* g_dirname (const gchar *file_name);
gchar* g_get_current_dir (void);
+/* Get the codeset for the current locale */
+gchar * g_get_codeset (void);
+
/* return the environment string for the variable. The returned memory
* must not be freed. */
gchar* g_getenv (const gchar *variable);
-gchar * g_locale_get_codeset (void);
-
/* we use a GLib function as a replacement for ATEXIT, so
* the programmer is not required to check the return value
* (if there is any in the implementation) and doesn't encounter
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);
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);