blob: 1c67f92e6c2a14d59736d3a441ae6d3f96c8730b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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.
(bug #200875 by Михаил)
--- a/src/netcat.c
+++ b/src/netcat.c
@@ -157,6 +157,7 @@
connect_sock.domain = PF_INET;
#ifdef ENABLE_NLS
+ setlocale(LC_CTYPE, "");
setlocale(LC_MESSAGES, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
|