From: Jan Rękorajski Date: Sun, 9 Jul 2023 08:20:58 +0000 (+0200) Subject: - pull https://github.com/pld-linux/urxvt/pull/1 to fix broken locale with perl 5.38 X-Git-Tag: auto/th/urxvt-9.31-3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Furxvt.git;a=commitdiff_plain;h=HEAD - pull https://github.com/pld-linux/urxvt/pull/1 to fix broken locale with perl 5.38 - rel 3 --- diff --git a/broken-perl-5.38.patch b/broken-perl-5.38.patch new file mode 100644 index 0000000..6c5db6e --- /dev/null +++ b/broken-perl-5.38.patch @@ -0,0 +1,19 @@ +From 66e8bc0e3099962a076b142c2d341b667764aa76 Mon Sep 17 00:00:00 2001 +From: Mateusz Kocielski +Date: Sat, 8 Jul 2023 16:41:02 +0200 +Subject: [PATCH] Add patch to fix broken UTF-8 with perl-5.38 + +Analysis done by sxzzsf and sent to rxvt-unicode mailing list: +http://lists.schmorp.de/pipermail/rxvt-unicode/2023q3/002665.html + +--- rxvt-unicode-9.31.old/src/rxvtperl.xs 2022-12-30 20:18:20.000000000 +0100 ++++ rxvt-unicode-9.31/src/rxvtperl.xs 2023-07-08 16:26:46.086347986 +0200 +@@ -399,7 +399,7 @@ + { + if (!perl) + { +- rxvt_push_locale (""); // perl init destroys current locale ++ rxvt_push_locale ("C"); // perl init destroys current locale + + { + perl_environ = rxvt_environ; diff --git a/urxvt.spec b/urxvt.spec index d32561b..a485a66 100644 --- a/urxvt.spec +++ b/urxvt.spec @@ -7,12 +7,13 @@ Summary: Rxvt terminal with unicode support and some improvements Summary(pl.UTF-8): Terminal Rxvt z obsługą unicode i kilkoma usprawnieniami Name: urxvt Version: 9.31 -Release: 2 +Release: 3 License: GPL v3+ Group: X11/Applications Source0: http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-%{version}.tar.bz2 # Source0-md5: 3d0ec83705c9b9ff301a4b9965b3cd9f Source1: %{name}.desktop +Patch0: broken-perl-5.38.patch URL: http://software.schmorp.de/ BuildRequires: autoconf >= 2.71 BuildRequires: automake @@ -52,6 +53,7 @@ URxvt jest modyfikacją Rxvt uwzględniającą: %prep %setup -q -n rxvt-unicode-%{version} +%patch0 -p1 %build %{__aclocal} -I.