This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Locales with wrong umlauts


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Igor Peshansky on 3/27/2006 9:54 PM:
> 
> Incidentally, since this subject came up: ls has a "--show-control-chars"
> option, but rm, mv, cp, and a bunch of other tools don't.  So, if you run
> rm in interactive mode, it doesn't display filenames properly.

Interesting question; I don't recall ever seeing this topic asked before
here or upstream, so I don't know where to search either.  I'll do some
upstream asking, to see what might be improved.

Meanwhile, looking in the source code, most of the coreutils use a wrapper
function quote(), which uses quoting style 'locale' without recourse.  On
the other hand, ls first reads the QUOTING_STYLE environment variable;
then uses -b to select 'escape', -N to select 'literal', -Q to select 'c',
or --quoting-style to select a particular style; falling back to a default
of 'literal' (for now, with a threat of changing the default to 'shell' in
the future).  Then ls does a post-pass depending on
- --show-control-characters that converts control characters to '?'.  The
difference in default quoting style is the reason that rm and friends
display octal sequences instead of literal accented characters for
characters that fail the isprint test (outside of 0x20 - 0x7e).

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEKUEH84KuGfSFAYARAnRDAJ4wM0SG9K8KySJ2Lsbr2BR6o7GmnwCeN5V8
I9kjHy/mSLizcZPYKFVt2Uw=
=klsp
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]