develooper Front page | perl.perl5.porters | Postings from November 2014

Re: new locale warnings (Re: [perl.git] branch blead, updated. v5.21.5-435-gbd083ee)

Thread Previous | Thread Next
From:
Karl Williamson
Date:
November 17, 2014 05:27
Subject:
Re: new locale warnings (Re: [perl.git] branch blead, updated. v5.21.5-435-gbd083ee)
Message ID:
54698744.6020702@khwilliamson.com
On 11/15/2014 05:26 PM, Craig A. Berry wrote:
>
>> On Nov 15, 2014, at 5:23 PM, Karl Williamson <public@khwilliamson.com> wrote:
>>
>> On 11/15/2014 03:12 PM, Craig A. Berry wrote:
>>>   had done another test on Windows since I first wrote and noticed that the "C" locale is one of the ones Perl claims not to handle very well.  Which may well be correct but seems odd.
>>
>> I just checked this out on the Windows machine accessed off of dromedary, and did not see this problem.  I reverted the patch so that warnings were on before looking, and the only locales that showed errors were validly problematic.  The C locale was tested but did not warn.
>
> Hmm.  Below is an example of what I got before you disabled the warnings.  This on Windows 7 with CCTYPE=MSVC110 (Visual Studio 2012).  As far as I know it's a bog standard U.S. installation of Windows 7 Pro and it does, for some reason, think "Locale 'C' may not work well."  Let me  know if there's anything you want to look at further related to this.
>
This is strange.  Try this one liner and see if you get the warning.

perl -Ilib -MPOSIX -le 'use locale; print setlocale(LC_ALL, "C")'

I can't fathom how you wouldn't get it, based on the output you sent 
below,  But I can't fathom how it's not showing up in the test suite 
either, as I think the C locale is used in many places, nor can I see 
why MS would be doing this.  It would mean another violation of the 
POSIX standard, and in a recent version of their software to boot.  T 
think dromedary is using VS 2010.

> ../lib/locale.t .................................................... 1/? Locale 'Chinese_People's Republic of China.936' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Chinese_People's Republic of China.936' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'zh' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'C' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Japanese_Japan.932' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Japanese_Japan.932' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'ja' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'C' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Korean_Korea.949' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Korean_Korea.949' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'ko' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'C' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Chinese_People's Republic of China.936' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Chinese_People's Republic of China.936' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Chinese_People's Republic of China.936' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Japanese_Japan.932' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Japanese_Japan.932' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Japanese_Japan.932' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Korean_Korea.949' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Korean_Korea.949' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'Korean_Korea.949' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'C' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'ja' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'C' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'ko' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'C' may not work well.  Some characters in it are not recognized by Perl.
> Locale 'zh' may not work well.  Some characters in it are not recognized by Perl.
> ../lib/locale.t .................................................... ok
> ../lib/open.t ...................................................... ok
> ../lib/overload.t .................................................. ok
>
>
> ________________________________________
> Craig A. Berry
> mailto:craigberry@mac.com
>
> "... getting out of a sonnet is much more
>   difficult than getting in."
>                   Brad Leithauser
>
>


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About