This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: mbrtowc bug
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