shell-script-pt
[Top][All Lists]
Advanced

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

Re: [shell-script] Expressões Regulares UTF8 ou ISO8859-1


From: Humberto Pereira
Subject: Re: [shell-script] Expressões Regulares UTF8 ou ISO8859-1
Date: Wed, 17 May 2006 13:06:56 -0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060404 SeaMonkey/1.0.1

Flavio Junior wrote:

Alguem poderia me dizer por que diabos a expressão regular do sed, em
utf8, casou com o "C" maiusculo ??


Boa pergunta, no meu sistema nao casa.

[begnini@coke dados]$ locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=
[begnini@coke dados]$ echo "123 123 abC" | sed 's/[0-9]* [0-9]* [a-z]*//'
C
[begnini@coke dados]$ export LC_ALL=pt_BR.UTF8
[begnini@coke dados]$ echo "123 123 abC" | sed 's/[0-9]* [0-9]* [a-z]*//'
C
[begnini@coke dados]$

Acredito q seja um bug no seu sed.

[]s
Humberto Pereira



reply via email to

[Prev in Thread] Current Thread [Next in Thread]