X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 20 Jul 2009 17:45:05 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: mbrtowc bug
Message-ID: <20090720154505.GS27613@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4A6451C0.9050504@byu.net> <20090720114240.GB30066@calimero.vinschen.de> <20090720115529.GC30066@calimero.vinschen.de> <4A645C07.4090501@byu.net> <20090720120833.GF30066@calimero.vinschen.de> <4A646145.8000701@byu.net> <20090720123131.GP27613@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20090720123131.GP27613@calimero.vinschen.de>
User-Agent: Mutt/1.5.19 (2009-02-20)
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 Jul 20 14:31, Corinna Vinschen wrote:
> On Jul 20 06:21, Eric Blake wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > According to Corinna Vinschen on 7/20/2009 6:08 AM:
> > > I'm running the testcase on XP SP3.  I have an idea why it fails for
> > > you.  The eucJP codepage 20932 is not installed by default on US and
> > > other western language systems by default up to Windows 2003.  What you
> > > have to do is, open the "Regional and Language Options" control panel,
> > > go to the "Advanced" tab, scroll the "Code page conversion tables" list
> > > down to the 20932 entry, select it and install it.
> > > 
> > > This is not necessary anymore startying with Vista, which comes with
> > > almost all important conversion tables preinstalled.
> > 
> > Hmm.  That means we should probably teach setlocale to fail when trying to
> > select an eucJP codeset if we detect that the eucJP tables are not (yet)
> > installed.
> 
> http://cygwin.com/acronyms/#PTC
> 
> > if I build a cygwin package on a system without the code page, the gnulib
> > test skips, but knows (or can be taught) to assume that cygwin's mbrtowc
> > is not broken
> 
> Why is it a problem to do that in the current incarnation?  It's a known
> fact that Cygwin 1.7 will handle these charsets (eucJP, eucKR, SJIS,
> GBK, Big5).

I applied a patch which lets setlocale fail if the codepage necessary
for the conversion isn't installed.


HTH,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

