[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] locale on Mac



On 28/09/98 at 11:18, bart.mediamind@Ping.be (Bart Lateur) wrote:

> I have tried to convert a set of all upercase text to lowercase, using
> something like:
> 
>   print lc $_;
> 
> However, this failed to do it's job on special characters like "…" and
> "†", which remained in uppercase. (In case it got mangled: these are
> uppercase letters with "umlaut" AKA "dieresis").
> 
> For what I'"v read, this might be remedied by proper "locale" settings.
> Can I fix it?
> 
> Why is locale setting not set to standard Mac character set, by default?

AFAIK, the locale has been set by default to ASCII on all platforms since perl
5.004 and thus since MacPerl 5.1.6r4.

Just put a "use locale;" at the beginning of your script to use the MacOS
locale.

Georges Martin



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch