equal
deleted
inserted
replaced
|
1 From db0314f3eae402e81b13fbb905bfc7d2b3fddb62 Mon Sep 17 00:00:00 2001 |
|
2 From: Alan Coopersmith <[email protected]> |
|
3 Date: Tue, 29 Dec 2015 18:59:56 -0800 |
|
4 Subject: [PATCH 13/19] bind_textdomain_codeset |
|
5 |
|
6 Bug 15725357/SUNBT7060748 Some messages are not displayed correctly |
|
7 in non-UTF-8 locale terminal environment |
|
8 Original date:2012-03-23 owner:pengwang type:bug bugster: 7060748 |
|
9 --- |
|
10 daemon/main.c | 1 + |
|
11 1 file changed, 1 insertion(+) |
|
12 |
|
13 diff --git a/daemon/main.c b/daemon/main.c |
|
14 index f3329d0..924eb89 100644 |
|
15 --- a/daemon/main.c |
|
16 +++ b/daemon/main.c |
|
17 @@ -401,6 +401,7 @@ main (int argc, |
|
18 #endif |
|
19 |
|
20 bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); |
|
21 + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); |
|
22 textdomain (GETTEXT_PACKAGE); |
|
23 setlocale (LC_ALL, ""); |
|
24 |
|
25 -- |
|
26 2.7.4 |
|
27 |