develooper Front page | perl.perl5.porters | Postings from October 2014

Re: RFC: What should Perl do if the locale is set to something itcan't handle?

Thread Previous
From:
Ricardo Signes
Date:
October 11, 2014 01:36
Subject:
Re: RFC: What should Perl do if the locale is set to something itcan't handle?
Message ID:
20141011013612.GA16724@cancer.codesimply.com
* Karl Williamson <public@khwilliamson.com> [2014-10-08T22:53:50]
> I'm wondering if it would be a good thing to raise a warning on C99/POSIX
> 2001.1 platforms when we are switched into a multi-byte locale that isn't
> UTF-8.

It seems so to me, yes.

> We could warn on the 646 (and similar) ones by seeing, when we switch into
> it, if a \w character also matches one of the metacharacters.  We already go
> through all \w characters individually, calculating their folds, at the time
> of the switch anyway.
> 
> Perhaps such a warning would be of a new category, say "locale". Another
> potential warning in this category is the one Aristotle proposed in
> http://nntp.perl.org/group/perl.perl5.porters/211909

Also reasonable-sounding.

-- 
rjbs

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About