Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 200875

Summary: [patch] net-analyzer/gnu-netcat-0.7.1-r1 incorrectly display glibc/perror() messages in locales other then C/POSIX
Product: Gentoo Linux Reporter: Михаил <spike>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sourceforge.net/tracker/?func=detail&aid=1841947&group_id=52204&atid=466046
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: proposed patch

Description Михаил 2007-11-30 21:20:12 UTC
In russian locale, netcat error messages display as '???????'

Need to set LC_CTYPE along with LC_MESSAGES to correctly display messages in locales other then C/POSIX
Required for correct i18n support in glibc.

Reproducible: Always

Steps to Reproduce:
1. Set non C/posix locale, for example: export LANG=ru_RU.UTF-8
2. run netcat -u 127.0.0.1 <unused port>
3. enter any data into standart input
Actual Results:  
Display error message
read(net): ? ?????????? ????????

Expected Results:  
Display error message
read(net): В соединении отказано
Comment 1 Михаил 2007-11-30 21:23:36 UTC
Created attachment 137411 [details, diff]
proposed patch
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-05-26 01:55:36 UTC
Reported one and a half years ago. :)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-26 22:43:08 UTC
Thanks for the patch. It's in -r3 along with a few minor improvements.