X-Spam-Check-By: sourceware.org Message-ID: <44294107.8050107@byu.net> Date: Tue, 28 Mar 2006 06:58:31 -0700 From: Eric Blake User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Locales with wrong umlauts References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----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 AT byu DOT 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/