6 Sep
2008
6 Sep
'08
07:05
Per Jessen wrote:
I'm deleting all [:graph:] from a string using something like this:
$txt =~ s/[[:graph:]]+//g;
With the standard locale, [:graph:] is 0x21-0x7e.
With locale = de_DE.iso8859-1 (or similar ones), [:graph:] should be 0x21-0x7E plus 0xA0-0xFF. I'm comparing to how isgraph() works in C, which should be the same.
Well, with LC_CTYPE=de_DE.iso8859-1, the perl statement does NOT remove the characters 0x0A-0xFF.
Why not?
Does anyone have suggestions where else I might get an answer to this? /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org