5 Sep
2008
5 Sep
'08
09:29
All, I'm sure we've got some very knowledgeable perl-people here, so maybe you can sort this one out for me: 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? /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org