On Thu, Feb 14, 2008 at 03:51:40PM -0000, Ted Pedersen wrote: > 1) Incorporate "use locale" throughout package (suggested by Patrick > Drouin long ago)This will make for more convenient handling of > non-English text.
Wrong idea, wrong solution. To make handling of non-Latin1 text more convenient, make NSP UTF-8 safe. Enforce correct decodes on input streams and encodes on output streams. "use locale" is a hack. At best. Dead-end evolution. Browse the Monastery (http://www.perlmonks.org/) for more info and have a look at perldoc perluniintro especially the section about Locales: · How Does Unicode Work With Traditional Locales? In Perl, not very well. Avoid using locales through the "locale" pragma. Use only one or the other. But see perlrun for the description of the "-C" switch and its environment counterpart, $ENV{PERL_UNICODE} to see how to enable various Unicode features, for example by using locale settings. -- Kind regards, Dipl.-Inf. Richard Jelinek - The PetaMem Group - Prague/Nuremberg - www.petamem.com - -= 2007-09-25: 49235653 Mind Units =-