[Bug 830496] New: With multi byte locale tr does not support equivalent classes well
https://bugzilla.novell.com/show_bug.cgi?id=830496 https://bugzilla.novell.com/show_bug.cgi?id=830496#c0 Summary: With multi byte locale tr does not support equivalent classes well Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 2 Platform: All OS/Version: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: pth@suse.com ReportedBy: werner@suse.com QAContact: qa-bugs@suse.de CC: mail@bernhard-voelker.de Found By: Beta-Customer Blocker: --- The manual page or tr says: [=CHAR=] all characters which are equivalent to CHAR ... nevertheless within a chroot environment of current openSUSE Factory noether:~> echo $LANG POSIX noether:~> tr -Cd "[=a=]" <<<"1e2b3a"; echo a noether:~> tr -d "[=a=]" <<<"1e2b3a" 1e2b3 noether:~> tr -d "[:alpha:]" <<<"1e2b3a" 123 noether:~> LANG=fr_FR.UTF-8 noether:~> tr -Cd "[=e=]" <<<"1e2é3a"; echo e noether:~> tr -d "[=e=]" <<<"1e2é3a" 12é3a noether:~> tr -d "[:alpha:]" <<<"1e2é3a" 12é3 noether:~> tr -Cs "[=e=]" '[\n*]' <<<"1e2é3a" e noether:~> tr -s "[=e=]" '[\n*]' <<<"1e2é3a" 1 2é3a noether:~> rpm -q coreutils coreutils-8.21-4.3.x86_64 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830496 https://bugzilla.novell.com/show_bug.cgi?id=830496#c Philipp Thomas <pth@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830496 https://bugzilla.novell.com/show_bug.cgi?id=830496#c1 Philipp Thomas <pth@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |mail@bernhard-voelker.de --- Comment #1 from Philipp Thomas <pth@suse.com> 2013-11-26 13:55:38 CET --- Berny, could you check this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830496 https://bugzilla.novell.com/show_bug.cgi?id=830496#c Bernhard Voelker <mail@bernhard-voelker.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|mail@bernhard-voelker.de | AssignedTo|pth@suse.com |mail@bernhard-voelker.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=830496 https://bugzilla.novell.com/show_bug.cgi?id=830496#c2 Bernhard Voelker <mail@bernhard-voelker.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |WONTFIX --- Comment #2 from Bernhard Voelker <mail@bernhard-voelker.de> 2013-12-02 08:36:12 UTC --- tr(1) doesn't have multi-byte support - neither upstream in GNU coreutils not with openSUSE's i18n-patch. This is a unsatisfactory situation - and even more since POSIX [1] requires it. However, there are subtle tendencies in upstream discussions to address i18n after the almost-ready version 8.22. Meanwhile, the workaround via GNU 'sed' can be used: $ sed 's/[[=e=]]//g' <<<"1e2é3a" 123a [1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/tr.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com