delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/19/14:38:46

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.4 required=5.0 tests=AWL,BAYES_40,BOTNET
X-Spam-Check-By: sourceware.org
Message-id: <49C29F2A.4000802@acm.org>
Date: Thu, 19 Mar 2009 12:38:18 -0700
From: David Rothenberger <daveroth AT acm DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666
MIME-version: 1.0
To: cygwin AT cygwin DOT com, cygwin AT cygwin DOT com
Subject: Re: Q: Is anybody here using the CYGWIN=codepage:oem setting?
References: <20090319130909 DOT GZ9322 AT calimero DOT vinschen DOT de> <49C281F7 DOT 6080602 AT acm DOT org> <20090319181323 DOT GB1868 AT calimero DOT vinschen DOT de> <49C29366 DOT 8080708 AT acm DOT org> <20090319192031 DOT GB9322 AT calimero DOT vinschen DOT de> <20090319192229 DOT GC9322 AT calimero DOT vinschen DOT de>
In-reply-to: <20090319192229.GC9322@calimero.vinschen.de>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
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

On 3/19/2009 12:22 PM, Corinna Vinschen wrote:
> On Mar 19 20:20, Corinna Vinschen wrote:
>> On Mar 19 11:48, David Rothenberger wrote:
>>>> Not exactly.  However, assuming you have a file using characters which
>>>> are not in your current ANSI codeset, then you could only manipulate
>>>> that file when setting LANG="xx_YY.UTF-8", and only in applications
>>>> which call setlocale().
>>> I have no idea whether du calls setlocale() or not. I think you're  
>>> saying that today, with codepage:utf8, it is able to get sizes for files  
>>> using non-ANSI characters, but if codepage is removed, it would not be  
>>> able to do so unless it called setlocale(). Is that right?
>> Right.

That seems bad.

> ...unless Cygwin itself would call setlocale().

Or maybe the codepage could default to UTF-8 if setlocale() isn't called?

-- 
David Rothenberger  ----  daveroth AT acm DOT org

Pandora's Rule:
         Never open a box you didn't close.


--
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