Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200875 - [patch] net-analyzer/gnu-netcat-0.7.1-r1 incorrectly display glibc/perror() messages in locales other then C/POSIX
Summary: [patch] net-analyzer/gnu-netcat-0.7.1-r1 incorrectly display glibc/perror() m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL: http://sourceforge.net/tracker/?func=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-30 21:20 UTC by Михаил
Modified: 2010-07-26 22:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed patch (setlocale.patch,370 bytes, patch)
2007-11-30 21:23 UTC, Михаил
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.