Fix Win32 behaviour in some cases where a drive letter is present. For
authorTor Lillqvist <tml@iki.fi>
Sun, 21 Mar 2004 21:43:13 +0000 (21:43 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sun, 21 Mar 2004 21:43:13 +0000 (21:43 +0000)
commit421e7fdfadb5a63908a446e3166f81e82fcd45ea
tree429b32989cc4e23f32012d6e01a0caec12cdd896
parent000085ffa7f7f56519d652da72019564ae1808fd
Fix Win32 behaviour in some cases where a drive letter is present. For

2004-03-21  Tor Lillqvist  <tml@iki.fi>

* glib/gutils.c (g_path_get_dirname): Fix Win32 behaviour in some
cases where a drive letter is present. For 'a:' or 'a:foo', return
'a:.'. This is mostly just for consistency with the behaviour
without a drive letter. But very important is to for 'a:\foo' or
'a:\', return 'a:\', and not 'a:'. (Ditto for forward slashes
instead of backslashes.) (#137316)

* tests/dirname-test.c (main): More complete testing on
Win32. If a test fails, include expected and actual result in
error message.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gutils.c
tests/dirname-test.c