diff options
author | Tor Lillqvist <tml@iki.fi> | 2000-12-17 18:43:57 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2000-12-17 18:43:57 +0000 |
commit | 4f9e04c1d78ffe95f60101bea8381c6be5575069 (patch) | |
tree | 799fc8066bdf0d87845d6e685a32d171aa104111 /gunicode.h | |
parent | a5f18bb9ba34642333e784e739c042e6a3edc09f (diff) | |
download | glib-4f9e04c1d78ffe95f60101bea8381c6be5575069.tar.gz |
Use GetACP to get the current ANSI codepage.
2000-12-17 Tor Lillqvist <tml@iki.fi>
* gutf8.c (g_utf8_get_charset_internal): (Win32) Use GetACP to get
the current ANSI codepage.
* gunicode.h: Add comment that the static string g_get_charset
sets the parameter to point to should be copied in case the
charset might be changed later in the program.
Diffstat (limited to 'gunicode.h')
-rw-r--r-- | gunicode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gunicode.h b/gunicode.h index 6810a2106..93f368337 100644 --- a/gunicode.h +++ b/gunicode.h @@ -105,7 +105,9 @@ typedef enum /* Returns TRUE if current locale uses UTF-8 charset. If CHARSET is * not null, sets *CHARSET to the name of the current locale's - * charset. This value is statically allocated. + * charset. This value is statically allocated, and should be copied + * in case the locale's charset will be changed later using setlocale() + * or in some other way. */ gboolean g_get_charset (char **charset); |