diff options
Diffstat (limited to 'net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch')
-rw-r--r-- | net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch b/net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch new file mode 100644 index 0000000..1c67f92 --- /dev/null +++ b/net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch @@ -0,0 +1,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); |