On 2024-01-11 19:18 +0000, Michael Gold wrote:

> Package: rxvt-unicode
> Version: 9.31-1+b1
> Severity: important
>
> Dear Maintainer,
>
> After upgrading rxvt-unicode today, it's no longer displaying UTF-8
> properly.  /var/log/apt/history.log shows:
>   Upgrade: rxvt-unicode:amd64 (9.31-1, 9.31-1+b1)
>
> I still have an old window open, in which this command:
>   printf '\xe2\x80\x94\n'
> properly produces an EM DASH (U+2014); in the newer version, it produces
> U+00E2 LATIN SMALL LETTER A WITH CIRCUMFLEX.
>
> Another simple test is to run "mc" and note that all the box-drawing
> characters are corrupted.

I have not tested it, but the attached patch should fix that.  See
http://lists.schmorp.de/pipermail/rxvt-unicode/2023q3/002665.html.

Cheers,
       Sven

diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs
index ba697f0..ce02b59 100644
--- a/src/rxvtperl.xs
+++ b/src/rxvtperl.xs
@@ -399,7 +399,7 @@ rxvt_perl_interp::init ()
 {
   if (!perl)
     {
-      rxvt_push_locale (""); // perl init destroys current locale
+      rxvt_push_locale ("C"); // perl init destroys current locale

       {
         perl_environ = rxvt_environ;

Reply via email to