delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/20/17:14:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: Re: mbrtowc bug
Date: Mon, 20 Jul 2009 21:13:43 +0000 (UTC)
Lines: 25
Message-ID: <loom.20090720T210639-165@post.gmane.org>
References: <4A6451C0 DOT 9050504 AT byu DOT net> <20090720114240 DOT GB30066 AT calimero DOT vinschen DOT de> <20090720115529 DOT GC30066 AT calimero DOT vinschen DOT de> <4A645C07 DOT 4090501 AT byu DOT net> <20090720120833 DOT GF30066 AT calimero DOT vinschen DOT de> <4A646145 DOT 8000701 AT byu DOT net> <20090720123131 DOT GP27613 AT calimero DOT vinschen DOT de> <20090720154505 DOT GS27613 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
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

Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:

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

Cool.  That worked to make the gnulib tests pass when installed.  We ought to 
make sure this trick is documented on the page of supported charsets 
(http://cygwin.com/1.7/cygwin-ug-net/setup-locale.html#setup-locale-problems)

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

Success.  I've verified that with the tables uninstalled again, this patch is 
enough to cause the gnulib tests to skip anything trying to use eucJP (and as a 
result of that skip, it does not bloat the code image by trying to install its 
replacement).  This gets rid of some long-standing failures I've been seeing in 
the coreutils testsuite.  Thanks!

-- 
Eric Blake



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019