!11 [sync] PR-10: fix(pluma-utils):Fixed garbled toolTips path in tab page with GB18030 encoding chinese translation
From: @openeuler-sync-bot Reviewed-by: @hjimmy, @dou33 Signed-off-by: @dou33
This commit is contained in:
commit
54948753a5
@ -0,0 +1,38 @@
|
||||
From a96a0a3207f0ff36d13f30a1c1b83edf420b3a23 Mon Sep 17 00:00:00 2001
|
||||
From: luoqing <luoqing@kylinsec.com.cn>
|
||||
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
|
||||
|
||||
@ -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 <longcheng@kylinos.com.cn> - 1.22.2-4
|
||||
- fix(pluma-utils):Fixed garbled toolTips path in tab page with GB18030 encoding chinese translation
|
||||
|
||||
* Thu Jul 28 2022 longcheng <longcheng@kylinos.com.cn> - 1.22.2-3
|
||||
- Add chinese translation
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user