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 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: <20100906090751 DOT GB13174 AT calimero DOT vinschen DOT de> In-Reply-To: <20100906090751.GB13174@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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