X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.3 required=5.0 	tests=AWL,BAYES_00,J_CHICKENPOX_84,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andy Moreton <andrewjmoreton@gmail.com>
Subject:  Re: [1.7] Support for CJK Character Sets
Date:  Sat, 04 Apr 2009 14:48:47 +0100
Lines: 25
Message-ID:  <u3acottq8.fsf@gmail.com>
References:  <20090403173212.51916.qmail@web4102.mail.ogk.yahoo.co.jp> 	<20090403192048.GC852@calimero.vinschen.de> 	<20090404100909.GF852@calimero.vinschen.de>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (windows-nt)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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 Sat 04 Apr 2009, Corinna Vinschen wrote:
> On Apr  3 21:20, Corinna Vinschen wrote:
>> On Apr  4 02:32, neomjp wrote:
>> > [...]
>> > But it failed for JIS/ISO-2022-JP and eucJP. (It was represented as
>> > ASCII SO(0x0e)/UTF-8 sequence).
>> > 
>> > What is going wrong here? What makes the file name conversion from
>> > UTF-16 to these character sets to fail? Or, what am I doing wrong?
>> > [...]
>> > LANG=en_US.ISO-2022-JP
>
> Oh, btw., this is wrong.  The string "ISO-2022-JP" isn't supported,
> just "JIS" is.  But it won't work, even with "JIS", afaics.

As an aside, the man page for wcstomb(3) seems to have an incorrect
prototype:

     int wcstombs(const char *S, wchar_t *PWC, size_t N);

should be:

     int wcstombs(char *S, const wchar_t *PWC, size_t N);

AndyM


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

