Re: case-sensitivity



"Joe Marshall" <eval.apply@xxxxxxxxx> writes:

If no normalization is done, then symbols that apparently are the same
may actually not be EQ?. Furthemore, `grepping' for a symbol may fail
if the wrong code points are used.

It's not different for filenames (except on MacOS) or grep that you
mentioned.

The solution is to avoid using different representations in different
places, not to force all programs to apply various equivalence
relations. The latter is unrealistic: there are too many places
where strings are compared.

Folding makes sense for user-oriented searches, e.g. browsing text
files. In programming unambiguity and precision is more important.

DOS/Windows made a mistake of case-insensitive filenames. Since
filenames are stored and processed differently in different
environments (DOS CP on FAT in short filenames - it's not stored
anywhere which encoding is used; Windows CP in WinAPI; UTF-16 in long
filenames, on NTFS and in newer subsets of WinAPI), filenames created
on some versions of Windows with some locales are inaccessible in some
other versions with different locales, or only for some programs
depending on which API flavor is used.

--
__("< Marcin Kowalczyk
\__/ qrczak@xxxxxxxxxx
^^ http://qrnik.knm.org.pl/~qrczak/
.



Relevant Pages

  • Re: The case insensitive #include statement horror...
    ... like the case-insensitivity of the Windows file system, ... it's more like asking the programmer switching case sensitivity in their ... It enlarges the namespace of possible filenames... ... If there really were no reason to have upper ...
    (microsoft.public.vc.language)
  • Re: Got it working, kind of. was Re: Adding network and internet to Warp 4
    ... Windows Explorer and I see long filenames. ... from an OS/2 window, ... Advanced install when I installed it, and I don't remember there being ...
    (comp.os.os2.misc)
  • Re: Got it working, kind of. was Re: Adding network and internet to Warp 4
    ... Windows Explorer and I see long filenames. ... Firefox ver 3 shows up as Firefox_.zip. ... Advanced install when I installed it, and I don't remember there being ...
    (comp.os.os2.misc)
  • Re: Finding short file names?
    ... >Windows XP has migrated well past "short filenames". ... When someone does a copy or xcopy of the system partition, the SFNs ... "Shell Extensions" if you have some programming chops and patience. ...
    (microsoft.public.windowsxp.general)
  • Re: XP exec background process
    ... On DOS and Windows systems... ... When working with paths and filenames, ... DOS used to save all paths and filenames as 100% uppercase. ... Passing switches/parameters on the command-line for different commands ...
    (comp.lang.php)