From: | "Jeroen Roovers (jer)" <jer@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/gnu-netcat/files: gnu-netcat-LC_CTYPE.patch |
Date: | Mon, 26 Jul 2010 22:42:47 |
Message-Id: | 20100726224245.DE88E2CF2B@corvid.gentoo.org |
1 | jer 10/07/26 22:42:45 |
2 | |
3 | Added: gnu-netcat-LC_CTYPE.patch |
4 | Log: |
5 | Add LC_CTYPE patch by Михаил (bug #200875). Drop unused eclasses. Call epatch once. |
6 | (Portage version: 2.2_rc67/cvs/Linux i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/gnu-netcat/files/gnu-netcat-LC_CTYPE.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: gnu-netcat-LC_CTYPE.patch |
15 | =================================================================== |
16 | In russian locale, netcat error messages display as '???????' |
17 | |
18 | Need to set LC_CTYPE along with LC_MESSAGES to correctly display messages in |
19 | locales other then C/POSIX |
20 | Required for correct i18n support in glibc. |
21 | |
22 | (bug #200875 by Михаил) |
23 | |
24 | |
25 | --- a/src/netcat.c |
26 | +++ b/src/netcat.c |
27 | @@ -157,6 +157,7 @@ |
28 | connect_sock.domain = PF_INET; |
29 | |
30 | #ifdef ENABLE_NLS |
31 | + setlocale(LC_CTYPE, ""); |
32 | setlocale(LC_MESSAGES, ""); |
33 | bindtextdomain(PACKAGE, LOCALEDIR); |
34 | textdomain(PACKAGE); |