www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/06/16:25:59

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4C854E45.5020103@towo.net>
Date: Mon, 06 Sep 2010 22:25:41 +0200
From: Thomas Wolff <towo AT towo DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: LC_ALL=ru_RU.cp1251 ls -l encoding problem.
References: <i60mpv$c76$1 AT dough DOT gmane DOT org> <20100906090751 DOT GB13174 AT calimero DOT vinschen DOT de>
In-Reply-To: <20100906090751.GB13174@calimero.vinschen.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

  Am 06.09.2010 11:07, schrieb Corinna Vinschen:
> On Sep  5 21:16, Oleksandr Gavenko wrote:
>> As you can see user/group always printed in UTF-8
>> and discard LC_ALL=cp1251.
>>
>>    $ LC_ALL=ru_RU.cp1251 mintty
> The problem is, what is the encoding of the /etc/passwd file itself?
> If it's UTF-8, it's UTF-8.  If you want to use another encoding
> throughout, you would have to generate the /etc/passwd and /etc/group
> files in that other encoding as well.
Which is a problem if different users have different locale preferences, 
and also a problem to configure for non-experts.
What about making the functions that access user/group information aware 
of this, i.e. interpreting the files as UTF-8 and interpreting 
parameters/results according to current locale?
(getpwuid, getpwnam, getlogin, ...)

Thomas

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

- Raw text -


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