diff --git a/0001-Added-test-cases-for-spaces-around-in-desktop-files.patch b/0001-Added-test-cases-for-spaces-around-in-desktop-files.patch new file mode 100644 index 0000000000000000000000000000000000000000..bbb53f9a4b610cac1767d2243b291d18b94089fa --- /dev/null +++ b/0001-Added-test-cases-for-spaces-around-in-desktop-files.patch @@ -0,0 +1,47 @@ +From 13567a736fa4860e7c332156ed803254e9deebc3 Mon Sep 17 00:00:00 2001 +From: Michi Henning +Date: Thu, 4 Dec 2014 09:12:57 +1000 +Subject: [PATCH] Added test cases for spaces around = in desktop files. + +--- + tests/cases/extract13.desktop.in | 3 +++ + tests/results/extract13.desktop | 3 +++ + tests/results/extract13.desktop.in.h | 3 +++ + 3 files changed, 9 insertions(+) + +diff --git a/tests/cases/extract13.desktop.in b/tests/cases/extract13.desktop.in +index 19021be..256935f 100644 +--- a/tests/cases/extract13.desktop.in ++++ b/tests/cases/extract13.desktop.in +@@ -24,3 +24,6 @@ X-GNOME-Bugzilla-Bugzilla=GNOME + X-GNOME-Bugzilla-Product=gnome-utils + X-GNOME-Bugzilla-Component=gsearchtool + _X-Color=Blue ++_X-Color2 = Red ++_X-Color3= Green ++_X-Color4 =Yellow +diff --git a/tests/results/extract13.desktop b/tests/results/extract13.desktop +index e8b60a1..879fcc1 100644 +--- a/tests/results/extract13.desktop ++++ b/tests/results/extract13.desktop +@@ -24,3 +24,6 @@ X-GNOME-Bugzilla-Bugzilla=GNOME + X-GNOME-Bugzilla-Product=gnome-utils + X-GNOME-Bugzilla-Component=gsearchtool + X-Color=Blue ++X-Color2 = Red ++X-Color3= Green ++X-Color4 =Yellow +diff --git a/tests/results/extract13.desktop.in.h b/tests/results/extract13.desktop.in.h +index e9df7b9..9e44646 100644 +--- a/tests/results/extract13.desktop.in.h ++++ b/tests/results/extract13.desktop.in.h +@@ -3,3 +3,6 @@ char *s = N_("Find Files..."); + /* 4. This comment also should be extracted. */ + char *s = N_("Locate documents and folders on this computer by name or content"); + char *s = N_("Blue"); ++char *s = N_("Red"); ++char *s = N_("Green"); ++char *s = N_("Yellow"); +-- +2.39.0.windows.2 + diff --git a/intltool.spec b/intltool.spec index 1d8e6b7adbd3e31deaa8d53cdafaf427d2bb47e8..510fbae07a8b7cb6d452c466a4ecc20488fc6c51 100644 --- a/intltool.spec +++ b/intltool.spec @@ -1,6 +1,6 @@ Name: intltool Version: 0.51.0 -Release: 15 +Release: 16 Summary: Utility scripts for internationalizing XML License: GPLv2 URL: https://launchpad.net/intltool @@ -15,6 +15,7 @@ Patch1: intltool-perl5.26-regex-fixes.patch Patch2: intltool-merge-Create-cache-file-atomically.patch # fix make distcheck fail, rhbz1318674 Patch3: intltool_distcheck-fix.patch +Patch4: 0001-Added-test-cases-for-spaces-around-in-desktop-files.patch %description Intltool can automatically extracts translatable strings from oaf, glade, bonobo ui, nautilus @@ -48,6 +49,9 @@ make check %{_mandir}/man8/* %changelog +* Sat Jan 07 2023 xingxing - 0.51.0-16 +- Fixed incorrect handling of spaces around + * Tue Oct 25 2022 yanglongkang - 0.51.0-15 - rebuild for next release