X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Lenik <lenik@bodz.net>
Subject:  Re: Cygwin programs doesn't support non-ASCII filenames
Date:  Tue, 12 May 2009 15:49:14 +0800
Lines: 27
Message-ID: <gub9ls$ifn$1@ger.gmane.org>
References:  <gu2u4o$f2i$3@ger.gmane.org> <20090509100231.GR21324@calimero.vinschen.de> <gu46gf$3tf$1@ger.gmane.org> <20090509154400.GS21324@calimero.vinschen.de>
Mime-Version:  1.0
Content-Type:  text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2
In-Reply-To: <20090509154400.GS21324@calimero.vinschen.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 2009-5-9 23:44, Corinna Vinschen wrote:
> On May  9 23:12, Lenik wrote:
>> The same result, it shows that `cat' from binutils can support locale
>> well, while `d' isn't.
>
> Ok, but that's not Cygwin's problem, just the d tool would need an
> update at one point, perhaps.  OTOH, what you're doing is a bit
> borderline.  When you start this stuff from cmd, you will have to enter
> the filename in the notation valid for the locale in which the
> application works.  For d, which only works in the C locale, you would
> have to give the pathname using the SO/UTF-8 sequences.  Right now I
> have no idea if there's a workaround for that, but keep in mind that
> we're at the beginning of real native language support.  Unfortunately
> it's all a bit more complicated than on non-Windows systems, given the
> UTF-16-ness of the underlying system.
>
I'd like to know if there is any build plan to upgrade tools like d, 
zip, unzip, jar, etc. to support locale settings, rather than C only. So 
I can tell customers when our cygwin-based scripts will work for Chinese 
path names.

Or is there documented ways to build with locale support from source 
code? Currently the two tools `jar' and `unzip' which don't support 
locale settings prevent my scripts being widely deployed.

Thank you Corinna,
Lenik


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

