mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 16:38:54 +02:00
Convert filenames to UTF-8 on Windows.
2004-10-29 Matthias Clasen <mclasen@redhat.com> * glib/goption.c (parse_arg): Convert filenames to UTF-8 on Windows.
This commit is contained in:
committed by
Matthias Clasen
parent
aa410edee6
commit
b190dce984
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c (parse_arg): Convert filenames to UTF-8 on
|
||||||
|
Windows.
|
||||||
|
|
||||||
2004-10-29 Hans Breuer <hans@breuer.org>
|
2004-10-29 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
* glibconfig.h */makefile.msc.in : updated [and finally fixed my
|
* glibconfig.h */makefile.msc.in : updated [and finally fixed my
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c (parse_arg): Convert filenames to UTF-8 on
|
||||||
|
Windows.
|
||||||
|
|
||||||
2004-10-29 Hans Breuer <hans@breuer.org>
|
2004-10-29 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
* glibconfig.h */makefile.msc.in : updated [and finally fixed my
|
* glibconfig.h */makefile.msc.in : updated [and finally fixed my
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c (parse_arg): Convert filenames to UTF-8 on
|
||||||
|
Windows.
|
||||||
|
|
||||||
2004-10-29 Hans Breuer <hans@breuer.org>
|
2004-10-29 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
* glibconfig.h */makefile.msc.in : updated [and finally fixed my
|
* glibconfig.h */makefile.msc.in : updated [and finally fixed my
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c (parse_arg): Convert filenames to UTF-8 on
|
||||||
|
Windows.
|
||||||
|
|
||||||
2004-10-29 Hans Breuer <hans@breuer.org>
|
2004-10-29 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
* glibconfig.h */makefile.msc.in : updated [and finally fixed my
|
* glibconfig.h */makefile.msc.in : updated [and finally fixed my
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-29 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c (parse_arg): Convert filenames to UTF-8 on
|
||||||
|
Windows.
|
||||||
|
|
||||||
2004-10-29 Hans Breuer <hans@breuer.org>
|
2004-10-29 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
* glibconfig.h */makefile.msc.in : updated [and finally fixed my
|
* glibconfig.h */makefile.msc.in : updated [and finally fixed my
|
||||||
|
@@ -658,8 +658,14 @@ parse_arg (GOptionContext *context,
|
|||||||
{
|
{
|
||||||
gchar *data;
|
gchar *data;
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
data = g_locale_to_utf8 (value, -1, NULL, NULL, error);
|
||||||
|
|
||||||
|
if (!data)
|
||||||
|
return FALSE;
|
||||||
|
#else
|
||||||
data = g_strdup (value);
|
data = g_strdup (value);
|
||||||
|
#endif
|
||||||
change = get_change (context, G_OPTION_ARG_FILENAME,
|
change = get_change (context, G_OPTION_ARG_FILENAME,
|
||||||
entry->arg_data);
|
entry->arg_data);
|
||||||
g_free (change->allocated.str);
|
g_free (change->allocated.str);
|
||||||
@@ -675,8 +681,14 @@ parse_arg (GOptionContext *context,
|
|||||||
{
|
{
|
||||||
gchar *data;
|
gchar *data;
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
data = g_locale_to_utf8 (value, -1, NULL, NULL, error);
|
||||||
|
|
||||||
|
if (!data)
|
||||||
|
return FALSE;
|
||||||
|
#else
|
||||||
data = g_strdup (value);
|
data = g_strdup (value);
|
||||||
|
#endif
|
||||||
change = get_change (context, G_OPTION_ARG_STRING_ARRAY,
|
change = get_change (context, G_OPTION_ARG_STRING_ARRAY,
|
||||||
entry->arg_data);
|
entry->arg_data);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user