[Bug 219900] tr class and unicode collation
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jun 10 03:15:34 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219900
Bug ID: 219900
Summary: tr class and unicode collation
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: manu at freebsd.org
It seems that there is a bug in unicode collation using tr to convert char to
uppercase :
manu at arcadia> echo $LC_ALL
en_US.UTF-8
manu at arcadia> echo test | tr '[:lower:]' '[:upper:]'
TEST
manu at arcadia> echo test | tr '[:alpha:]' '[:upper:]'
ÓÄÒÓ
manu at arcadia> echo test | tr '[:alnum:]' '[:upper:]'
ÞÎÝÞ
manu at arcadia> export LC_ALL=C
manu at arcadia> echo test | tr '[:lower:]' '[:upper:]'
TEST
manu at arcadia> echo test | tr '[:alpha:]' '[:upper:]'
ZZZZ
manu at arcadia> echo test | tr '[:alnum:]' '[:upper:]'
ZZZZ
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list