Package: irssi
Version: 1.2.0-2cril0
Severity: normal

Dear Maintainer,

Actually the report is done against the locally patched version already

Here is the patch debian/patches/99-non-utf8-locale-bad-edit-line-671

Description: Fixes UTF-8-in-latin1 display in the input line if locale non utf8
 With a non UTF-8 locale, the edit line on the bottom will display UTF-8
 characters encoded in Latin-1.

 See https://github.com/irssi/irssi/issues/1018.
 .
 irssi (1.2.0-2cril.0) unstable; urgency=medium
 .
   [ Marc Schaefer ]
   * apply patch https://github.com/irssi/irssi/issues/1018
Author: Marc Schaefer <schae...@alphanet.ch>
Origin: https://github.com/irssi/irssi/issues/1018
Bug: https://github.com/irssi/irssi/issues/1018
Last-Update: 2020-08-03

--- irssi-1.2.0.orig/src/fe-text/gui-entry.c
+++ irssi-1.2.0/src/fe-text/gui-entry.c
@@ -381,8 +381,14 @@ static void gui_entry_draw_from(GUI_ENTR
 
                if (entry->hidden)
                         g_string_append_c(str, ' ');
-               else if (unichar_isprint(c))
-                       g_string_append_unichar(str, c);
+               else if (unichar_isprint(c)) {
+                       if (entry->utf8) {
+                               g_string_append_unichar(str, c);
+                       }
+                       else {
+                               g_string_append_c(str, c);
+                       }
+               }
                else {
                        g_string_append_c(str, 4);
                        g_string_append_c(str, FORMAT_STYLE_REVERSE);



-- System Information:
Debian Release: 10.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (x86_64)

Kernel: Linux 4.19.0-9-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_CH.ISO-8859-1 (charmap=ISO-8859-1), LANGUAGE=C 
(charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages irssi depends on:
ii  libc6                       2.28-10
ii  libglib2.0-0                2.58.3-2+deb10u2
ii  libperl5.28                 5.28.1-6+deb10u1
ii  libssl1.1                   1.1.1d-0+deb10u3
ii  libtinfo6                   6.1+20181013-2+deb10u2
ii  perl                        5.28.1-6+deb10u1
ii  perl-base [perlapi-5.28.1]  5.28.1-6+deb10u1

irssi recommends no packages.

Versions of packages irssi suggests:
pn  irssi-scripts  <none>

-- Configuration Files:
/etc/irssi.conf changed [not included]

-- no debconf information

Reply via email to