You are not logged in.
Hello,
When I try to run rofi it raises erros about not being able to understand some key combinations like Shift+Insert and it fails to run.
xkbcommon: ERROR: couldn't find a Compose file for locale "tr_TR.UTF8"
A little bit of digging on the internet I found out that "To find a Compose file, xkbcommon looks at the /usr/share/X11/locale/compose.dir file, which contains a fixed list of locales, and at /usr/share/X11/locale/<your locale>/Compose directly; it expects a perfectly-spelled locale to work.
However there is no tr_TR.UTF8 directory in/usr/share/X11/locale and I think this is the root of the problem. But I don't know how to generate that dir. All my locale settings are fine.
Thanks.
Offline
Shouldn't it be tr_TR.UTF-8?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
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=
Offline
This is what the FAQ says:
If you see that in rofi’s output, it is quite likely that your locale is wrong, or at least not perfect.
To find a Compose file, xkbcommon looks at the /usr/share/X11/locale/compose.dir file, which contains a fixed list of locales, and at /usr/share/X11/locale/<your locale>/Compose directly; it expects a perfectly-spelled locale to work.
Wrong example: en_US.utf8
Good example: en_US.UTF-8
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Yes, I know. In fact I pointed it out in the first post. The problem is there is no locale dir for my locale in /usr/share/X11/locale and I do not know hot to generate one.
Offline
It's present on mine (it's installed via libx11)
$ pacman -Qo /usr/share/X11/locale/iso8859-9
/usr/share/X11/locale/iso8859-9/ is owned by libx11 1.6.3-1
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
But isn't xkbcommon looking for /usr/share/X11/tr_TR.utf8 ?
Mocp music player also won't start due to locale problems. I began to wonder if there's something wrong with my locale conf. I created another thread but it's been deleted. Here is my locale settings as of now. Is there something wrong with it?
Thank you for your time.
locale -a
C
en_US.utf8
POSIX
tr_TR
tr_TR.iso88599
tr_TR.utf8
turkish
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=
localectl
System Locale: LANG=tr_TR.utf8
VC Keymap: n/a
X11 Layout: trq
cat /etc/locale.gen
...
#tr_CY.UTF-8 UTF-8
#tr_CY ISO-8859-9
tr_TR.UTF-8 UTF-8
tr_TR ISO-8859-9
#ts_ZA UTF-8
#tt_RU UTF-8
#tt_RU@iqtelif U
...
Last edited by krypt (2016-08-07 13:08:57)
Offline
I use English so I cannot replicate all of this. It does look like your locale is broken though.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline