diff --git a/0001-fix-pluma-utils-Fixed-garbled-toolTips-path-in-tab-p.patch b/0001-fix-pluma-utils-Fixed-garbled-toolTips-path-in-tab-p.patch new file mode 100644 index 0000000000000000000000000000000000000000..7f99ecc1176aab059f06f126078df99ba65887c5 --- /dev/null +++ b/0001-fix-pluma-utils-Fixed-garbled-toolTips-path-in-tab-p.patch @@ -0,0 +1,38 @@ +From a96a0a3207f0ff36d13f30a1c1b83edf420b3a23 Mon Sep 17 00:00:00 2001 +From: luoqing +Date: Thu, 20 Jul 2023 10:58:23 +0800 +Subject: [PATCH] fix(pluma-utils):Fixed garbled toolTips path in tab page with + GB18030 encoding +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +- 修复在GB18030编码下tab页中toolTips的路径乱码 + +Related #7248 +--- + pluma/pluma-utils.c | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/pluma/pluma-utils.c b/pluma/pluma-utils.c +index a721695..334ef7b 100644 +--- a/pluma/pluma-utils.c ++++ b/pluma/pluma-utils.c +@@ -1351,9 +1351,12 @@ pluma_utils_uri_for_display (const gchar *uri) + { + GFile *gfile; + gchar *parse_name; +- ++ gchar *get_path; + gfile = g_file_new_for_uri (uri); +- parse_name = g_file_get_parse_name (gfile); ++ // parse_name = g_file_get_parse_name (gfile); ++ ++ get_path = g_file_get_path(gfile); ++ parse_name = g_locale_to_utf8(get_path, -1, NULL, NULL, NULL); + g_object_unref (gfile); + + return parse_name; +-- +2.27.0 + diff --git a/pluma.spec b/pluma.spec index fe23155024235fba8281cedab0e65b82104aa796..2a478ddf1e350bdbe48b673d6386d75a391bbdd7 100644 --- a/pluma.spec +++ b/pluma.spec @@ -15,7 +15,7 @@ Summary: Text editor for the MATE desktop Name: pluma Version: %{branch}.2 -Release: 3 +Release: 4 License: GPLv2+ and LGPLv2+ URL: http://mate-desktop.org @@ -37,7 +37,8 @@ Patch4: pluma_0001-externaltools-plugin-change-code-for-Python-2-3-comp.p Patch5: pluma_0001-snippets-plugin-change-code-for-Python-2-3-compatibi.patch # https://github.com/mate-desktop/pluma/pull/437 Patch6: pluma_0001-Switch-to-Python-3.patch -Patch7: 0001-add-chinese-translation.patch +Patch7: 0001-add-chinese-translation.patch +Patch8: 0001-fix-pluma-utils-Fixed-garbled-toolTips-path-in-tab-p.patch BuildRequires: desktop-file-utils BuildRequires: enchant-devel @@ -158,6 +159,9 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';' %changelog +* Thu Jul 20 2023 longcheng - 1.22.2-4 +- fix(pluma-utils):Fixed garbled toolTips path in tab page with GB18030 encoding chinese translation + * Thu Jul 28 2022 longcheng - 1.22.2-3 - Add chinese translation