You are not logged in.
Hi,
I noticed urxvt and aterm don't always show all characters correctly, here's a picture of the lines "find" outputs in:
urxvt (rxvt-unicode-patched 9.31-3; rxvt-unicode-terminfo 9.31-4)
aterm (aterm 1.0.1-7)
xterm (xterm 387-1)
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL= $ cat ~/.Xressources
Xft.dpi: 96
Xft.antialias: true
URxvt.font: xft:Droid Sans Mono:antialias=false:size=10
! URxvt.font: -*-droid sans mono-*-*-*-*-14-*-*-*-*-*-*-u
URxvt.boldFont: xft:Droid Sans Mono:bold:antialias=false:size=10
URxvt.italicFont: xft:Droid Sans Mono:italic:antialias=false:size=10
URxvt.bolditalicFont: xft:Droid Sans Mono:bold italic:antialias=false:size=10Since aterm is also affected, I'm not sure the urxvt.font is the culprit.
Funny thing is: if I type the ' it is displayed perfectly in urxvt, aterm and xterm.
xprop says that:
- aterm is using WM_LOCALE_NAME(STRING) = "C"
- urxvt ad xterm are using WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
How do I get urxvt to display all the characters correctly all the time_
Last edited by hybrid (2023-10-20 10:26:43)
Offline
Looks more like a locale than a font issue.
localectl
locale -a
cat /proc/$PPID/cmdline
tr '\0' '\n' < /proc/$PPID/environ | grep -E 'LC|LANG'
cat /proc/$$/cmdline
tr '\0' '\n' < /proc/$$/environ | grep -E 'LC|LANG' Offline
It is probably worth noting aterm is discontinued and does not support UTF-8.
Last edited by raggerv8 (2023-10-18 16:37:45)
Offline
It is probably worth noting aterm is discontinued and does not support UTF-8.
True. I was surprised to find that relic on my computer still... urxvt is the terminal emulator I use.
@Seth:
$ localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: (unset)
X11 Layout: (unset) $ locale -a
C
C.utf8
de_DE.utf8
en_US.utf8
POSIX$ cat /proc/$PPID/cmdline
urxvt-nameurxvt-ws3-left$ tr '\0' '\n' < /proc/$PPID/environ | grep -E 'LC|LANG'
LANG=en_US.UTF-8$ cat /proc/$$/cmdline
bash$ tr '\0' '\n' < /proc/$$/environ | grep -E 'LC|LANG'
LANG=en_US.UTF-8Let me know if you need further info.
Offline
The locale environment looks innocent enough, still it's what I'd expect if you ran eg. "LC_ALL=C urxvt"
What happens if you run
LC_ALL=en_US.UTF-8 urxvt?
Offline
Still the same, an â instead of a `.
Just for kicks I built rxvt-unicode-truecolor-wide-glyphs (replaced rxvt-unicode-patched as well as rxvt-unicode-terminfo) et voilà: the ` is displayed correctly.
Then I rebuilt rxvt-unicode-patched and installed rxvt-unicode-terminfo: ` is broken again.
So I think I'll switch to rxvt-unicode-truecolor-wide-glyphs.
TBH, I don't know half the stuff they patch into rxvt-packages in AUR. I believe initially (maybe 15 years ago) I chose a specific AUR package over the regular package to have faux transparency. I remember at some point that package was discontinued or outdated and didn't build anymore or whatever and then I settled apparently on the one mentioned in the first post.
Are these patches - for example from rxvt-unicode-truecolor-wide-glyphs - even still needed, or is all of that included in the regular rxvt-unicode package from extra nowadays anyways?
Offline
Literal "`" would be ASCII anyway and w/ your findings (fwwi, I use the same set of patches plus the sixel patch) it's more likely that the version you compiled has a bug or completely lacks any terminfo?
The wideglyphs patch should result in more lenience regarding the glyph box (mostly relevant for fallback fonts) - the main reason I build a custom urxvt is to enable pixbuf what allows me to have identifying backdrops for special windows (eg. mutt etc)
Offline
Something must be off still...
rxvt-unicode-pixbuf-sixel-patched doesn't build for me and guess where it fails: terminfo
output of yay -S rxvt-unicode-pixbuf-sixel-patched
"The permission denied" strikes me, because the directory r is 755 and the terminfo entries are 644.
$ lsd -al /usr/share/terminfo/r/
drwxr-xr-x 2 root root 4096 Oct 18 22:04 /usr/share/terminfo/r/
$ ls -al /usr/share/terminfo/r/
total 136
drwxr-xr-x 2 root root 4096 Oct 18 22:04 .
drwxr-xr-x 44 root root 4096 Mar 16 2023 ..
-rw-r--r-- 1 root root 592 May 23 22:02 rbcomm
-rw-r--r-- 1 root root 588 May 23 22:02 rbcomm-nam
-rw-r--r-- 1 root root 588 May 23 22:02 rbcomm-w
-rw-r--r-- 1 root root 209 May 23 22:02 rca
-rw-r--r-- 1 root root 972 May 23 22:02 rcons
-rw-r--r-- 1 root root 1184 May 23 22:02 rcons-color
-rw-r--r-- 3 root root 738 May 23 22:02 rebus3180
-rw-r--r-- 1 root root 365 May 23 22:02 regent
-rw-r--r-- 1 root root 490 May 23 22:02 regent100
-rw-r--r-- 1 root root 394 May 23 22:02 regent20
-rw-r--r-- 3 root root 728 May 23 22:02 regent200
-rw-r--r-- 1 root root 404 May 23 22:02 regent25
-rw-r--r-- 1 root root 500 May 23 22:02 regent40
-rw-r--r-- 1 root root 505 May 23 22:02 regent40+
-rw-r--r-- 3 root root 728 May 23 22:02 regent60
-rw-r--r-- 1 root root 118 May 23 22:02 report+da2
-rw-r--r-- 1 root root 159 May 23 22:02 report+version
-rw-r--r-- 1 root root 816 May 23 22:02 rt6221
-rw-r--r-- 1 root root 820 May 23 22:02 rt6221-w
-rw-r--r-- 2 root root 587 May 23 22:02 rtpc
-rw-r--r-- 2 root root 2234 May 23 22:02 rxvt
-rw-r--r-- 1 root root 2494 May 23 22:02 rxvt-16color
-rw-r--r-- 1 root root 2460 May 23 22:02 rxvt-256color
-rw-r--r-- 1 root root 2428 May 23 22:02 rxvt-88color
-rw-r--r-- 1 root root 2137 May 23 22:02 rxvt-basic
-rw-r--r-- 2 root root 2234 May 23 22:02 rxvt-color
-rw-r--r-- 1 root root 2248 May 23 22:02 rxvt-cygwin
-rw-r--r-- 1 root root 2266 May 23 22:02 rxvt-cygwin-native
-rw-r--r-- 1 root root 1194 May 23 22:02 rxvt+pcfkeys
-rw-r--r-- 1 root root 2508 Jul 30 10:57 rxvt-unicode
-rw-r--r-- 1 root root 2534 Jul 30 10:57 rxvt-unicode-256color
-rw-r--r-- 1 root root 2234 May 23 22:02 rxvt-xpmOffline
rxvt-unicode-pixbuf-sixel-patched
I just added the sixel patch to rxvt-unicode-truecolor-wide-glyphs
The terminfo failures are b/c of https://bugs.archlinux.org/task/78578 - rxvt-unicode-truecolor-wide-glyphs has a workaround for that.
Offline
You're a genius! I just assumed it must've been my terminfo that was causing this because it fit the picture so nicely.
I patched the truecolor-wide-glyphs with the sixel patch and it's working great.
Thank you all for your help!
Offline
\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline