Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jun 2017 03:15:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 219900] tr class and unicode collation
Message-ID:  <bug-219900-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help

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@FreeBSD.org
          Reporter: manu@freebsd.org

It seems that there is a bug in unicode collation using tr to convert char to
uppercase :

manu@arcadia> echo $LC_ALL                                                      
en_US.UTF-8
manu@arcadia> echo test | tr '[:lower:]' '[:upper:]'
TEST
manu@arcadia> echo test | tr '[:alpha:]' '[:upper:]'                            
ÓÄÒÓ
manu@arcadia> echo test | tr '[:alnum:]' '[:upper:]'                            
ÞÎÝÞ
manu@arcadia> export LC_ALL=C
manu@arcadia> echo test | tr '[:lower:]' '[:upper:]'                            
TEST
manu@arcadia> echo test | tr '[:alpha:]' '[:upper:]'                            
ZZZZ
manu@arcadia> echo test | tr '[:alnum:]' '[:upper:]'                            
ZZZZ

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219900-8>