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): В соединении отказано
Created attachment 137411 [details, diff] proposed patch
Reported one and a half years ago. :)
Thanks for the patch. It's in -r3 along with a few minor improvements.