Not used on Windows, don't even compile it then.
authorTor Lillqvist <tml@iki.fi>
Wed, 23 Jan 2002 00:05:30 +0000 (00:05 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 23 Jan 2002 00:05:30 +0000 (00:05 +0000)
commit79d4ba94384b6f44ad60f0c7b3c91727aa27b523
treeb6d2320e76c9dd4b77b7f2f00a6b4eecf03c5216
parent8f9f9b3dee884c8b3b44693657ec7935ece1da6f
Not used on Windows, don't even compile it then.

2002-01-23  Tor Lillqvist  <tml@iki.fi>

* glib/gconvert.c: (strdup_len): Not used on Windows, don't even
compile it then.

(acceptable): Improve comments for the _acceptable_ table: put
each ASCII char above the hex number for it.

(g_escape_file_uri): On Windows, turn backslashes in the file name
into plain ("forward") slashes.

(g_filename_from_uri): On Windows, don't return the hostname
"localhost", because we can not be 100% sure it will be recognized
in all cases anyway, so simpler to turn it into a null
hostname.

Change slashes in the filename into backslashes, as that is the
more canonical separator.

Recognize drive letters (either followed by a colon or a vertical
bar, as used by some browsers), and if the filename part starts
with a such, don't include any (back)slash.

Don't drop any extra leading slash in the filename on Unix.

(g_filename_to_uri): On Windows, if the hostname is "localhost",
don't use it, for consistency with g_filename_from_uri().

tests/uri-test.c: Change accordingly, so that all tests pass on
Windows. Unix, too, I hope, though I couldn't check that now.

(main): Unset the G_BROKEN_FILENAMES environment variable on Unix,
as some tests require that filenames are in UTF-8. Is unsetenv()
portable?

These changes should fix bugs #59387, #59652, #59657 and #59658.
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gconvert.c
tests/uri-test.c