On Mon, Feb 02, 2004 at 12:21:40PM -0800, Larry Wall wrote:Another way to say that is to use '-C' option whose meaning changed between 5.8.0 and 5.8.1
locales for everyone willy nilly. So 5.8.1 backed off on that, with
the result that you have to be a little more intentional about your
input formats (or set the PERL_UNICODE environment variable).
What's the normal way to say "use the locale, like every other Unix program that processes text"? Setting PERL_UNICODE seems to make it *always* use Unicode:
(It's a shame that Perl doesn't behave like everyone else and obeyI tend to agree with you, but not entirely. There are many cases where following the locale doesn't work. See the thread in Perl-unicode list on the topic:
locale settings correctly; I thought we were finally getting away
from having to tell each program individually to use UTF-8. I don't
understand the logic of "RedHat set the locale to UTF-8 prematurely,
so Perl shouldn't obey the locale".)
http://www.nntp.perl.org/group/perl.unicode/2243
(I couldn't find a threaded-view option, but article #2243 through #2286 are all about this issue so that you can just keep pressing 'next' button).
Jungshik
-- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
