delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/28/08:58:50

X-Spam-Check-By: sourceware.org
Message-ID: <44294107.8050107@byu.net>
Date: Tue, 28 Mar 2006 06:58:31 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Locales with wrong umlauts
References: <loom DOT 20060326T135539-102 AT post DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 63 DOT 0603272344260 DOT 18642 AT access1 DOT cims DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.63.0603272344260.18642@access1.cims.nyu.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019