Issue #2924 has been reported by sevan.

----------------------------------------
Bug #2924: cat -v fails to tag characters in extended table with M- prefix with 
some locales
http://bugs.dragonflybsd.org/issues/2924

* Author: sevan
* Status: New
* Priority: Normal
* Assignee: 
* Category: Userland
* Target version: 
----------------------------------------
Using the following test:
setenv LC_ALL de_CH.ISO8859-15
foreach i ( `jot 178 178 356` )
echo a | tr 'a' "\$i" | cat -v
end

output will contain some printable characters listed instead with a question 
mark.

removing the !isprint() check for vflag results in printable characters being 
displayed correctly again. Making the behaviour of cat -v consistent whether 
locale is set to C (default) or another.

Attached patch removes the !isprint() check and switches from just setting 
locale settings set in LC_CTYPE to LC_ALL to import all set locale variables.

---Files--------------------------------
patch-dfbsd-cat-vflag.txt (534 Bytes)


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://bugs.dragonflybsd.org/my/account

Reply via email to