cygpath 1.7 wrong

Eric Blake
Fri Jun 13 13:14:00 GMT 2008

Hash: SHA1

According to Reini Urban on 6/13/2008 7:03 AM:
| 1.5 returns in user resp. system "/cygdrive",
| but 1.7 returns "/cygdrive/"
| This is annoying.

But is it wrong?  On the other hand, what happens if the user has / as
their cygdrive; does this print //?

| 2) multibyte chars in pathnames are not printed with /bin/ls.
| bash or coreutils?

Probably coreutils, and probably because isprint() is returning false.  In
1.5.x, I hacked coreutils to print non-ASCII characters in spite of
isprint() returning false, but I think that hack disappeared in my porting
to 1.7.0.  At any rate, I think that isprint() should be fixed here rather
than hacking coreutils - if the console can display something reasonable
for characters >= 0x80, then isprint() should claim they are printable.
But some of this also depends on deciding sane semantics for unibyte vs.
multibyte character locale settings.

- --
Don't work too hard, make some time for fun as well!

Eric Blake   
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


More information about the Cygwin-apps mailing list