New case sensitivity extension

Corinna Vinschen vinschen@redhat.com
Thu Apr 12 14:59:00 GMT 2001


Hi all,

I have just added a new CYGWIN setting to Cygwin which changes
Cygwins behaviour related to case differences in filenames.

The new CYGWIN setting is called "check_case" and could have
one of three values:

- check_case:relaxed

  Is the default and what we all know. Nothing happens.

- check_case:adjust

  The given POSIX path is checked for case while it's converted to
  a DOS path. If the case is different from what's given on the disk,
  the DOS path is silently adjusted to the correct case. This is
  mostly invisible but you can see the effect when you change the
  directory. For example, if a directory /Foo/BAR is given and one
  cds to /foo/bar. a following call to /bin/pwd returns "/Foo/BAR",
  while with the `relaxed' setting "/foo/bar" is returned.

- check_case:strict

  If the path given has the wrong case, an error is returned.
  For example, trying to open a file "Foo" when the file on disk
  is named "FOO", the error "No such file or directory" (ENOENT)
  is returned.
  If somebody tries to create a file "BAR" while a file "Bar"
  already exists, the new error message "Filename exists with
  different case" is returned.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-developers mailing list