You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch

20 lines
479 B

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);