> +When C<use locale> is in effect (which overrides C<use > +feature 'unicode_strings'>), Perl uses the semantics > +associated with the current locale. How does this different from C<use re "/l">? Does this mean that Perl will act like other utilities with respect to locales, or must you do something extra with Perl that you do not have to do with the others? Starting from en_US.UTF-8: % perl -CS -le 'print "\xE9"' | tr "[:lower:]" "[:upper:]" É I need only change my locale, and tr will now recognize the single byte 0xE9 as something to convert to upper case: % perl -C0 -le 'print "\xE9"' | env LC_ALL=en_US.ISO-8859-1 tr "[:lower:]" "[:upper:]" | iconv -f ISO-8859-1 -t UTF-8 É Does that mean that Perl will do the right thing if I simply say use locale; I don't think it will. So I don't understand what use locale is for. --tomThread Previous | Thread Next