You are not logged in.

#1 2021-08-21 13:04:59

hmet_ust
Member
Registered: 2021-08-05
Posts: 9

urxvt doesn't show some words

I cannot write some turkish words like ş, ç, ğ, İ, ı
When i click these words from my keyboard, nothing appeared.
I can write them in web browser. For example, when i try to copy aaağşwğğŞĞPPIELŞİÇx from web browser to urxvt, my console outputs

~ $
~ $ aaa??w????PPIEL?İ?x
bash: $'aaa\304\237\305\237w\304\237\304\237\305\236\304\236PPIEL\305\236\304\260\303\207x': command not found
~ $

.Xresources

URxvt.font:  xft:monospace:size=10
URxvt.scrollBar: false
URxvt*background: black
URxvt*foreground: green
URxvt.keysym.Shift-Control-V: perl:clipboard:paste
URxvt.iso14755: False
URxvt.perl-ext-common: default,clipboard
 ~ $ locale 
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
~ $
~ $ locale -a
C
POSIX
en_US.utf8
~ $

I was downloaded ttf-dejavu when installing arch. I dont know how can i search this problem in internet, i have tried but contexts was not related to my issue. Thanks for advance.

OS: Arch Linux x86_64
Kernel: 5.13.12-arch1-1
Shell: bash 5.1.8
WM: i3
Theme: Adwaita [GTK3]
Icons: Adwaita [GTK3]
Terminal: urxvt
Terminal Font: monospace

Offline

#2 2021-08-21 15:32:19

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

Re: urxvt doesn't show some words

Fix your locale, "C" is ASCII and cannot handle UTF-8 input (your browser ignores the locale or picks it from the webpage anyway)
https://wiki.archlinux.org/title/Locale

Sanity-check:

fc-match monospace

Offline

#3 2021-08-22 10:39:55

hmet_ust
Member
Registered: 2021-08-05
Posts: 9

Re: urxvt doesn't show some words

seth wrote:

Fix your locale, "C" is ASCII and cannot handle UTF-8 input (your browser ignores the locale or picks it from the webpage anyway)
https://wiki.archlinux.org/title/Locale

Sanity-check:

fc-match monospace

Sorry for late response. I tried it and it worked. But i want my programs use English language. I have tried these;

/etc/locale.conf
LANG=tr_TR.utf8
LC_MESSAGES=en_US.UTF-8
 ~ $ localectl
   System Locale: LANG=tr_TR.utf8
                  LC_MESSAGES=en_US.UTF-8
       VC Keymap: trq
      X11 Layout: n/a
 ~ $ 

but

 ~ $ locale
LANG=tr_TR.utf8
LC_CTYPE="tr_TR.utf8"
LC_NUMERIC="tr_TR.utf8"
LC_TIME="tr_TR.utf8"
LC_COLLATE="tr_TR.utf8"
LC_MONETARY="tr_TR.utf8"
LC_MESSAGES="tr_TR.utf8"
LC_PAPER="tr_TR.utf8"
LC_NAME="tr_TR.utf8"
LC_ADDRESS="tr_TR.utf8"
LC_TELEPHONE="tr_TR.utf8"
LC_MEASUREMENT="tr_TR.utf8"
LC_IDENTIFICATION="tr_TR.utf8"
LC_ALL=
 ~ $

Programs still use turkish. What should i do?

EDIT: i rebooted. Even bash started to use turkish..

Last edited by hmet_ust (2021-08-22 10:46:29)

Offline

#4 2021-08-22 11:39:12

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

Re: urxvt doesn't show some words

LC_MESSAGES is overwritten by something™
Make sure you've the english locales generated ("locale -a") and then you need to figure what something™ is, typically some shell rc (profile, bashrc) or your desktop environment (?) just reads LANG and then flattens the place.

Offline

Board footer

Powered by FluxBB