rxvt-unicode(urxvt-256colors) 在操作系统更新后打印损坏的 UTF-8

rxvt-unicode(urxvt-256colors) prints broken UTF-8 after OS update

提问人:Windymelt 提问时间:10/11/2023 更新时间:10/12/2023 访问量:31

问:

我正在使用 openSuSE Tumbleweed。通过 (我正在使用)进行分发更新后,显示奇怪的行为。它在更新之前打印了正常的 UTF-8 字符(例如),但它打印了损坏的 UTF-8 字符(如连续等)sudo zypper duprxvt-unicodeurxvt-256colorビールæ¨

it renders broken utf8

我重新安装了urxvt,但没有发生任何影响。欢迎提供任何信息。

我的语言环境:

% locale
LANG=ja_JP.UTF-8
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=

urxvt 版本:

rxvt-unicode (urxvt) v9.30 - released: 2021-11-27
options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,pixbuf,XIM,8bitctrls,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm

我的个人资料:.Xresources

rxvt*saveLines: 200
! do not scroll with output
URxvt*scrollTtyOutput: false

! scroll in relation to buffer (with mouse scroll or Shift+Page Up)
URxvt*scrollWithBuffer: true

! scroll back to the bottom on keypress
URxvt*scrollTtyKeypress: true

URxvt.font: xft:Berkeley Mono:pixelsize=18
URxvt.perl-ext-common: default,matcher,resize-font,fullscreen
URxvt.url-launcher: /usr/bin/xdg-open
URxvt.matcher.button: 1
URxvt.keysym.F11: perl:fullscreen:switch

! Kill some default key bindings such as Ctrl+Shift+...
URxvt.iso14755: false
URxvt.iso14755_52: false

! Fix font space
!URxvt*letterSpace: -1

!! Color Scheme and Opacity - gruvbox-dark https://github.com/morhetz/gruvbox
URxvt.depth:                32
URxvt.color0:               [90]#282828
URxvt.color1:               [90]#cc241d
URxvt.color2:               [90]#98971a
URxvt.color3:               [90]#d79921
URxvt.color4:               [90]#458588
URxvt.color5:               [90]#b16286
URxvt.color6:               [90]#689d6a
URxvt.color7:               [90]#a89984
URxvt.color8:               [90]#928374
URxvt.color9:               [90]#fb4934
URxvt.color10:              [90]#b8bb26
URxvt.color11:              [90]#fabd2f
URxvt.color12:              [90]#83a598
URxvt.color13:              [90]#d3869b
URxvt.color14:              [90]#8ec07c
URxvt.color15:              [90]#ebdbb2
URxvt.foreground:           [90]#ebdbb2
URxvt.background:           [90]#282828
URxvt.colorIT:              [90]#8ec07c
URxvt.colorBD:              [90]#d5c4a1
URxvt.colorUL:              [90]#83a598
URxvt.scrollColor:          [90]#504945
!URxvt.troughColor:          [90]#3C3836

emacs.FontBackend: xft

openSuSE:

% cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20231008"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20231008"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20231008"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
UTF-8 URXVT

评论

0赞 Giacomo Catenazzi 10/11/2023
检查是否安装了此类语言环境(以及它是否已重命名,例如丢失连字符),并检查 root 现在是否有意外值locale -asudo locale
0赞 Windymelt 10/11/2023
locale -a给我看了.那么我必须使用 as 吗?ja_JP.utf8ja_JP.utf8LANG
0赞 Windymelt 10/11/2023
附加信息:我尝试了其他终端模拟器。Xterms 很好地打印了 UTF-8。GNOME 终端也是如此。
0赞 Windymelt 10/12/2023
这可能与此有关。mail-archive.com/[电子邮件保护]/msg02243.html

答:

0赞 Windymelt 10/12/2023 #1

我删除了perl扩展并工作了。.Xresources

从:

URxvt.perl-ext-common: default,matcher,resize-font,fullscreen

自:

URxvt.perl-ext-common:

Perl v5.38.0 中可能存在错误:https://www.mail-archive.com/[email protected]/msg02243.html