From 19de75ed65370385734005cbd4d74683e3668fbd Mon Sep 17 00:00:00 2001 From: herengui Date: Fri, 27 Aug 2021 11:36:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=AD=E6=96=87=E7=8E=AF?= =?UTF-8?q?=E5=A2=83journal=E4=B8=AD=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=AD=E6=96=87=E5=AD=97=E7=AC=A6=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: herengui --- fix-journal_missing_chinese.patch | 14 ++++++++++++++ imsettings.spec | 6 +++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 fix-journal_missing_chinese.patch diff --git a/fix-journal_missing_chinese.patch b/fix-journal_missing_chinese.patch new file mode 100644 index 0000000..ba598c0 --- /dev/null +++ b/fix-journal_missing_chinese.patch @@ -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); + diff --git a/imsettings.spec b/imsettings.spec index d223580..0213879 100644 --- a/imsettings.spec +++ b/imsettings.spec @@ -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 - 1.7.3-10 +- fix issue that chinese characters missing in the journal + * Fri Aug 20 2021 tanyulong - 1.7.3-9 - fix compile error sinal multi defined