修复中文环境journal中无法正常显示中文字符的问题

Signed-off-by: herengui <herengui@uniontech.com>
This commit is contained in:
herengui 2021-08-27 11:36:46 +08:00
parent e5531f9353
commit 19de75ed65
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,14 @@
diff --git a/imsettings-daemon/main.c b/imsettings-daemon/main.c
index f72b822..254e683 100644
--- a/imsettings-daemon/main.c
+++ b/imsettings-daemon/main.c
@@ -175,7 +175,8 @@ main(int argc, char **argv)
NULL);
loop_in_object = g_quark_from_static_string("imsettings-daemon-loop");
g_object_set_qdata(G_OBJECT (server), loop_in_object, loop);
-
+ // Set language
+ setlocale(LC_ALL, "");
imsettings_server_start(server, arg_replace);
g_main_loop_run(loop);

View File

@ -1,6 +1,6 @@
Name: imsettings
Version: 1.7.3
Release: 9
Release: 10
License: LGPLv2.1
Summary: Delivery framework for general Input Method configuration
URL: https://bitbucket.org/tagoh/imsettings/src/master/
@ -12,6 +12,7 @@ Patch0003: imsettings-force-enable-for-cinnamon.patch
Patch0004: imsettings-fix-unbound-var.patch
Patch0005: Fix-can-not-input-chinese-in-en-environment.patch
Patch0006: imsetting-fix-compile-error-sinal-multi-defined.patch
Patch0007: fix-journal_missing_chinese.patch
BuildRequires: desktop-file-utils intltool gettext libtool automake autoconf glib2 >= 2.32.0 gobject-introspection-devel
BuildRequires: libnotify-devel libX11-devel libgxim-devel >= 0.5.0 gtk3-devel >= 3.3.3
Requires: xorg-x11-xinit >= 1.0.2-22
@ -144,6 +145,9 @@ fi
%{_libdir}/imsettings/libimsettings-qt.so
%changelog
* Fri Aug 27 2021 herengui <herengui@uniontech.com> - 1.7.3-10
- fix issue that chinese characters missing in the journal
* Fri Aug 20 2021 tanyulong <tanyulong@kylinos.cn> - 1.7.3-9
- fix compile error sinal multi defined