You are not logged in.

#1 2018-08-01 06:23:26

budaria
Member
Registered: 2018-06-28
Posts: 11

Unicode characters in urxvt only work if I launch urxvt from urxvt

So, my locale is set correctly,
Output of locale -a

C
en_US.utf8
POSIX

Output of localectl:

   System Locale: LANG=en_US.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a

If I launch the urxvt from dmenu or  i3 keybinding the unicode characters do not work.
If I launch urxvt instance from another urxvt then the unicode characters work.

Any ideas?
Thanks

Offline

#2 2018-08-01 06:44:39

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

Re: Unicode characters in urxvt only work if I launch urxvt from urxvt

Output of "locale" in both terminals and please elaborate on "do not work", does input fail, does output look weird (screenshot?), do you get other characters than expected, …

Offline

#3 2018-08-01 07:01:05

budaria
Member
Registered: 2018-06-28
Posts: 11

Re: Unicode characters in urxvt only work if I launch urxvt from urxvt

Thanks for replyig.

By unicode characters not workin I mean that I can't type unicode characters when opening using either shortcut  or dmenu and in vim nerdtree arrows are shown as strange characters:
https://i.imgur.com/FwRo6Ct.png
The left one is opened through i3 keybinding(it is the same when I open through dmenu), the right one was launched throuh urxvt itself.

I added some things in locale.conf, output of locale changed but behavior and output of commands is the same in both terminals.
output of locale -a in both terminals is:

C
en_US.utf8
POSIX

output of locale in both terminals are:

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=

localectl:

   System Locale: LANG=en_US.UTF-8
                  LC_CTYPE=en_US.utf8
                  LC_NUMERIC=en_DK.utf8
                  LC_TIME=en_DK.utf8
                  LC_COLLATE=C
                  LC_MONETARY=en_DK.utf8
                  LC_MESSAGES=en_DK.utf8
                  LC_PAPER=en_DK.utf8
                  LC_NAME=en_DK.utf8
                  LC_ADDRESS=en_DK.utf8
                  LC_TELEPHONE=en_DK.utf8
                  LC_MEASUREMENT=en_DK.utf8
                  LC_IDENTIFICATION=en_DK.utf8
       VC Keymap: n/a
      X11 Layout: n/a

Last edited by jasonwryan (2018-08-01 07:11:59)

Offline

#4 2018-08-01 07:12:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Unicode characters in urxvt only work if I launch urxvt from urxvt

Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2018-08-01 11:02:39

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

Re: Unicode characters in urxvt only work if I launch urxvt from urxvt

Your shell scripts set LC_ALL or something to en_US.UTF-8, but your system locale (and most likely i3 etc.) refers to en_DK.utf8 a couple of times which you've not built as locale.

Offline

Board footer

Powered by FluxBB