Re: [Bug 161797] Save as... fails in win32 when curdir is on server
- From: Tor Lillqvist <tml iki fi>
- To: Owen Taylor <otaylor redhat com>
- Cc: gtk-devel-list gtk org
- Subject: Re: [Bug 161797] Save as... fails in win32 when curdir is on server
- Date: Tue, 4 Jan 2005 02:21:27 +0000
Owen Taylor writes:
> One question before we go to far into solving this is when is the
> current comparison a problem? When are we comparing a filename in
> indeterminate case to a filename in the casing from the filesystem?
I guess the typical case would be when a user inputs a file name in
lowercase, een if the actual filename is mixed or upper case?
> (Does g_utf8_casefold() really use the right rules?
Hmm, not exactly. Presumably the case-insensitiveness in Windows only
handles single-character uppercase/lowercase pairs. A quick
experimentation shows that it is possible to have two files in the
same folder that differ in name only in that where the other has a
sharp-s, the other has "ss". These names would g_utf8_casefold() to
the same, yes?
I guess I'll have to experiment with all the entries in the
casefold_table in gunichartables.h to see if the same goes for all the
cases.
> Does windows expose casefolding with the rules it uses for
> comparison of filenames?)
Exact documentation from Microsoft? Dream on...
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]