preliminary patch for incorporating internationalizing facilities

Kazuhiro Fujieda fujieda@jaist.ac.jp
Wed Jun 28 14:51:00 GMT 2000


>>> On Wed, 28 Jun 2000 23:00:31 +0200
>>> Corinna Vinschen <vinschen@cygnus.com> said:

> >    /* The two paths were the same length, so just determine normal
> >       lexical sorted order. */
> > -  res = strcasecmp (ap->posix_path, bp->posix_path);
> > +  res = strcmp (ap->native_path, bp->native_path);
> 
> I don't understand that part. It seems to be a clear mistake that
> the posix paths are compared but why are you using `strcmp' now?
> What's about the case?

I believe this change causes no serious problem. It affects only
the case that there are two or more representations of the same
native path in the mount table.

strcasecmp is a locale-dependent function in ISO C. I don't want
to use it if it can be safely replaced with another function.  I
judged strcasecmp can be safely replaced with strcmp in this case.
____
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology


More information about the Cygwin-patches mailing list