mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 09:16:17 +01:00
Use g_path_get_basename() instead of strrchr(), so that either slash is
2004-10-01 Tor Lillqvist <tml@iki.fi> * glib/goption.c (g_option_context_parse): Use g_path_get_basename() instead of strrchr(), so that either slash is accepted on Windows.
This commit is contained in:
parent
ea58e960f9
commit
1c1fb90769
@ -1,3 +1,9 @@
|
||||
2004-10-01 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/goption.c (g_option_context_parse): Use
|
||||
g_path_get_basename() instead of strrchr(), so that either slash
|
||||
is accepted on Windows.
|
||||
|
||||
2004-09-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gfileutils.c: Convert filenames to UTF-8 before
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-10-01 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/goption.c (g_option_context_parse): Use
|
||||
g_path_get_basename() instead of strrchr(), so that either slash
|
||||
is accepted on Windows.
|
||||
|
||||
2004-09-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gfileutils.c: Convert filenames to UTF-8 before
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-10-01 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/goption.c (g_option_context_parse): Use
|
||||
g_path_get_basename() instead of strrchr(), so that either slash
|
||||
is accepted on Windows.
|
||||
|
||||
2004-09-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gfileutils.c: Convert filenames to UTF-8 before
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-10-01 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/goption.c (g_option_context_parse): Use
|
||||
g_path_get_basename() instead of strrchr(), so that either slash
|
||||
is accepted on Windows.
|
||||
|
||||
2004-09-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gfileutils.c: Convert filenames to UTF-8 before
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-10-01 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/goption.c (g_option_context_parse): Use
|
||||
g_path_get_basename() instead of strrchr(), so that either slash
|
||||
is accepted on Windows.
|
||||
|
||||
2004-09-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gfileutils.c: Convert filenames to UTF-8 before
|
||||
|
@ -828,13 +828,9 @@ g_option_context_parse (GOptionContext *context,
|
||||
{
|
||||
gchar *prgname;
|
||||
|
||||
prgname = strrchr ((*argv)[0], G_DIR_SEPARATOR);
|
||||
if (prgname)
|
||||
prgname++;
|
||||
else
|
||||
prgname = (*argv)[0];
|
||||
|
||||
prgname = g_path_get_basename ((*argv)[0]);
|
||||
g_set_prgname (prgname);
|
||||
g_free (prgname);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user