I have a perl script that parses accented characters and works well in
Windows 2000 (that was installed in brazilian language).
In MacOS X the "i" flag doesn't recognize the accented characters in
uppercase.
The script has the "setlocale" statment and I also put the brazilian
language as the default in bash_profile, as shown bellow.

What am I missing?

TIA
Newton Furia

------------------
In the script
------------------
#!/usr/bin/perl -w
use POSIX qw(locale_h);
setlocale(LC_CTYPE, "pt_BR.ISO8859-1");
use locale;
while (<> ) {
s/(Instrução|Resolução)[^\d]+([\d\.]+)/\u\L$1 $2/gi;
print $_;
}

-------------------
In the bash_profile:
-------------------
LC_ALL=pt_BR.ISO8859-1
export LC_ALL


Reply via email to