You are not logged in.

#1 2021-09-04 19:19:36

alighorab
Member
Registered: 2021-09-04
Posts: 7

[SOLVED] urxvt does not view unicode chars and also font awesome icons

I installed rxvt-unicode and tried to restore my previous setup on Manjaro xfce, but I had problems with the unicode support. I can not type arabic letters on the terminal and can not view font awesome icons, It shows like this on vim:
4H7n1rj.png

EDIT: I had i3wm installed

Last edited by alighorab (2021-09-06 14:23:47)

Offline

#2 2021-09-04 20:39:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,693

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

Moving to Desktops and Environments


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2021-09-05 02:56:26

solskog
Member
Registered: 2020-09-05
Posts: 462

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

Try and set your urxvt.conf for your specific fonts.

# fc-list : family
# fc-list 
...
# cat /etc/X11/xinit/xinitrc.d/60-urxvt.conf
URxvt.font: xft:xos4 terminus:pixelsize=24:antialias=true:autohint=true,xft:unifont

Last edited by solskog (2021-09-05 03:09:58)

Offline

#4 2021-09-05 06:29:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,457

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

Also post the output of

localectl; locale; locale -a

If you seek to make regular use of wide chars, consider eg. https://aur.archlinux.org/packages/rxvt … ideglyphs/

Offline

#5 2021-09-05 15:56:06

alighorab
Member
Registered: 2021-09-04
Posts: 7

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

solskog wrote:

Try and set your urxvt.conf for your specific fonts.

# fc-list : family
# fc-list 
...
# cat /etc/X11/xinit/xinitrc.d/60-urxvt.conf
URxvt.font: xft:xos4 terminus:pixelsize=24:antialias=true:autohint=true,xft:unifont

Thanks man! it worked.

Offline

#6 2021-09-05 20:12:33

alighorab
Member
Registered: 2021-09-04
Posts: 7

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

solskog wrote:

Try and set your urxvt.conf for your specific fonts.

# fc-list : family
# fc-list 
...
# cat /etc/X11/xinit/xinitrc.d/60-urxvt.conf
URxvt.font: xft:xos4 terminus:pixelsize=24:antialias=true:autohint=true,xft:unifont

It break again, any thoughts?

Offline

#7 2021-09-05 20:16:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,457

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

Yes, your screenshot is indicative of a locale issue.
Missing glyphs end up as empty boxes and glyphs extending the monospace box are just not drawn by vanilla urxvt at all.

Post the output requested in #4 and see https://wiki.archlinux.org/title/Locale

Edit: crosspost

Last edited by seth (2021-09-05 20:16:47)

Offline

#8 2021-09-05 20:16:03

alighorab
Member
Registered: 2021-09-04
Posts: 7

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

seth wrote:

Also post the output of

localectl; locale; locale -a

If you seek to make regular use of wide chars, consider eg. https://aur.archlinux.org/packages/rxvt … ideglyphs/

System Locale: n/a
VC Keymap: n/a
X11 Layout: n/a
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=en_US.UTF-8
C
en_US.utf8
POSIX

Offline

#9 2021-09-05 20:21:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,457

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

System Locale: n/a

You're not setting a system locale, so the locale output is likely enforced in your interactive shellrc, but that doesn't apply to the shell that starts urxvt, so fix the system locale, https://wiki.archlinux.org/title/Locale

Offline

#10 2021-09-05 20:25:03

alighorab
Member
Registered: 2021-09-04
Posts: 7

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

seth wrote:
System Locale: n/a

You're not setting a system locale, so the locale output is likely enforced in your interactive shellrc, but that doesn't apply to the shell that starts urxvt, so fix the system locale, https://wiki.archlinux.org/title/Locale

I fixed it, and here is the output again:

System Locale: LANG=en_US.UTF-8
VC Keymap: n/a
X11 Layout: n/a
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=en_US.UTF-8
C
en_US.utf8
POSIX

But this does not fix the problem even after I logged out.

Last edited by alighorab (2021-09-05 20:25:28)

Offline

#11 2021-09-05 20:30:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,457

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

tr '\0' '\n' < /proc/$(pidof urxvt)/environ

Offline

#12 2021-09-05 20:33:17

alighorab
Member
Registered: 2021-09-04
Posts: 7

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

alighorab wrote:
seth wrote:
System Locale: n/a

You're not setting a system locale, so the locale output is likely enforced in your interactive shellrc, but that doesn't apply to the shell that starts urxvt, so fix the system locale, https://wiki.archlinux.org/title/Locale

I fixed it, and here is the output again:

System Locale: LANG=en_US.UTF-8
VC Keymap: n/a
X11 Layout: n/a
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=en_US.UTF-8
C
en_US.utf8
POSIX

But this does not fix the problem even after I logged out.



I don't know what happened, but I did

LC_ALL=en_US.utf8

and reboot the machine and it worked again!

Offline

#13 2021-09-05 20:37:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,457

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

You had LC_ALL there before.
Post your locale.conf and clear your shell rc (bashrc?) from locale settings that have typically no business being there.

Offline

#14 2021-09-05 20:52:05

alighorab
Member
Registered: 2021-09-04
Posts: 7

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

seth wrote:

You had LC_ALL there before.
Post your locale.conf and clear your shell rc (bashrc?) from locale settings that have typically no business being there.

Here is it:

LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8

I did clear my zshrc from locale settings, and reboot the machine and it works. I think me put my locale settings in zshrc was the reason for that.

Offline

#15 2021-09-06 04:53:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,457

Re: [SOLVED] urxvt does not view unicode chars and also font awesome icons

See whether you can remove LC_ALL - it's mainly for debugging.

The original cause will have been the missing global locale config - depending how you "logged out" the changes to /etc/locale.conf might have not been picked up at the moment.

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

Board footer

Powered by FluxBB