|Perl Monk, Perl Meditation|
use locale broken?by december (Pilgrim)
|on Mar 16, 2011 at 16:53 UTC||Need Help??|
december has asked for the wisdom of the Perl Monks concerning the following question:
Hello Fellow Monks,
I'm have a load of unicode/locale problems (more posts may be forthcoming) on a properly configured Linux system and I'm hoping someone can point out some of the reasons things are not turning out how I want them to turn out.
... use locale breaks '\w'. It doesn't consider "säv" to be consisting of "word" characters. Since it's a Nordic UTF-8 locale, '\w' should contain "öäå". It works without it, strangely enough.
BTW, even when dropped the -CSA unicode argument to Perl, use open works as expected with both :utf8 and :locale, so Perl does read my locale settings.
PS: Perl v5.10.1 on Debian "unstable".