From: Mashrab Kuvatov Date: Tue, 15 Jan 2008 15:17:42 +0000 (+0100) Subject: Boolean priority bug, found by Mashrab Kuvatov: X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8a0ba8a1aa63173cb5bb0437d43c7a9886f7c5f7;p=p5sagit%2Fp5-mst-13.2.git Boolean priority bug, found by Mashrab Kuvatov: Subject: Re: [perl #49646] perlbug AutoReply: open ':locale' does not work under locale with the modifier Message-Id: <200801151517.46296.kmashrab@uni-bremen.de> p4raw-id: //depot/perl@32980 --- diff --git a/ext/Encode/encoding.pm b/ext/Encode/encoding.pm index 16139c1..cd32cf4 100644 --- a/ext/Encode/encoding.pm +++ b/ext/Encode/encoding.pm @@ -50,7 +50,7 @@ sub _get_locale_encoding { no warnings 'uninitialized'; - if ( not $locale_encoding && in_locale() ) { + if ( (not $locale_encoding) && in_locale() ) { if ( $ENV{LC_ALL} =~ /^([^.]+)\.([^.@]+)(@.*)?$/ ) { ( $country_language, $locale_encoding ) = ( $1, $2 ); }