This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: cygpath 1.7 wrong
-----BEGIN PGP SIGNED MESSAGE-----
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 ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkhScn0ACgkQ84KuGfSFAYCYaQCgpmEs74b7Q5wBVDtdPIyxuQAn
428AoIdyL8mTew5Gvoi5kZW8h1xtA2FA
=FIqi
-----END PGP SIGNATURE-----