mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 04:36:17 +01:00
Don't crash if G_FILENAME_ENCODING is empty. (#164330, Pawel Sakowski)
2005-01-17 Matthias Clasen <mclasen@redhat.com> * glib/gconvert.c (g_get_filename_charsets): Don't crash if G_FILENAME_ENCODING is empty. (#164330, Pawel Sakowski)
This commit is contained in:
parent
987a7b011e
commit
b403b41e15
@ -1,3 +1,8 @@
|
|||||||
|
2005-01-17 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gconvert.c (g_get_filename_charsets): Don't crash
|
||||||
|
if G_FILENAME_ENCODING is empty. (#164330, Pawel Sakowski)
|
||||||
|
|
||||||
2005-01-15 Tor Lillqvist <tlillqvist@novell.com>
|
2005-01-15 Tor Lillqvist <tlillqvist@novell.com>
|
||||||
|
|
||||||
* configure.in: sh portability fix. Use "test" and not [.
|
* configure.in: sh portability fix. Use "test" and not [.
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2005-01-17 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gconvert.c (g_get_filename_charsets): Don't crash
|
||||||
|
if G_FILENAME_ENCODING is empty. (#164330, Pawel Sakowski)
|
||||||
|
|
||||||
2005-01-15 Tor Lillqvist <tlillqvist@novell.com>
|
2005-01-15 Tor Lillqvist <tlillqvist@novell.com>
|
||||||
|
|
||||||
* configure.in: sh portability fix. Use "test" and not [.
|
* configure.in: sh portability fix. Use "test" and not [.
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2005-01-17 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gconvert.c (g_get_filename_charsets): Don't crash
|
||||||
|
if G_FILENAME_ENCODING is empty. (#164330, Pawel Sakowski)
|
||||||
|
|
||||||
2005-01-15 Tor Lillqvist <tlillqvist@novell.com>
|
2005-01-15 Tor Lillqvist <tlillqvist@novell.com>
|
||||||
|
|
||||||
* configure.in: sh portability fix. Use "test" and not [.
|
* configure.in: sh portability fix. Use "test" and not [.
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2005-01-17 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gconvert.c (g_get_filename_charsets): Don't crash
|
||||||
|
if G_FILENAME_ENCODING is empty. (#164330, Pawel Sakowski)
|
||||||
|
|
||||||
2005-01-15 Tor Lillqvist <tlillqvist@novell.com>
|
2005-01-15 Tor Lillqvist <tlillqvist@novell.com>
|
||||||
|
|
||||||
* configure.in: sh portability fix. Use "test" and not [.
|
* configure.in: sh portability fix. Use "test" and not [.
|
||||||
|
@ -1070,7 +1070,7 @@ g_get_filename_charsets (G_CONST_RETURN gchar ***filename_charsets)
|
|||||||
cache->charset = g_strdup (charset);
|
cache->charset = g_strdup (charset);
|
||||||
|
|
||||||
p = getenv ("G_FILENAME_ENCODING");
|
p = getenv ("G_FILENAME_ENCODING");
|
||||||
if (p != NULL)
|
if (p != NULL && p[0] != '\0')
|
||||||
{
|
{
|
||||||
cache->filename_charsets = g_strsplit (p, ",", 0);
|
cache->filename_charsets = g_strsplit (p, ",", 0);
|
||||||
cache->is_utf8 = (strcmp (cache->filename_charsets[0], "UTF-8") == 0);
|
cache->is_utf8 = (strcmp (cache->filename_charsets[0], "UTF-8") == 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user