develooper Front page | perl.perl5.porters | Postings from February 2003

Re: Odd Locale warnings with bleadperl

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
February 23, 2003 06:50
Subject:
Re: Odd Locale warnings with bleadperl
Message ID:
20030223155021.30dcebfa.rgarciasuarez@free.fr
Abe Timmerman wrote:
> 
> In order to provide a uniform environment for the testsuite during smoke, 
> $ENV{LC_ALL} is localised for the "make test" phase in "mktest.pl", so it is 
> empty (I hadn't realised that):
> 
> 	~$ perl -wle 'local $ENV{LC_ALL}; print qx/set | grep LC_ALL/'
> 	LC_ALL=
> 
> Perhaps I need to change the implementation for that and set its localised 
> value to "C"?
> 
> Any thoughts?

Are you referring to this line :
    local( $ENV{PERLIO}, $ENV{LC_ALL}, $ENV{PERL_UTF8_LOCALE} );

(in http://search.cpan.org/src/ABELTJE/Test-Smoke-1.16_15/mktest.pl)
I think it's better to initialize them at their previous values.
This allow to set LC_ALL (for example) to some weird locale (Bulgarian
for example -- grep Changes5.8 for "Bulgarian" if you don't get it)
before running the smoke. (apparently the --locale option is for
another purpose)

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