[EMAIL PROTECTED] <[EMAIL PROTECTED]>:

> Anyway, Ive had strange problems with perl in UTF-8 locales, and this is 
> what I had to do:
> binmode STDOUT, ":utf8" ;
> binmode STDIN, ":utf8";
> 
> Regexps and things work, but invalid utf-8 sequences might still trip it up.

That doesn't work for me. The only method that works for me is to get
the script to reinvoke itself in the C locale, at the cost of an extra
exec and the maintenance work of having the path to the script
embedded in the script.

By the way, it's not just my scripts that break; library code seems
not to work in a UTF-8 locale either:

Wide character in syswrite at /usr/lib/perl5/5.8.0/Net/Cmd.pm line 429, <STDIN> line 
12.
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to