You are not logged in.
Hello,
I have to say I'm lost in setting my locale. I come from Czech Republic and want to set my system to speak in EN and use cz_CZ.UTF-8 and en_US.UTF-8 coding. I have locale set as you can see below. But if I try to run ZIM from command line I see this error:
Traceback (most recent call last):
File "/usr/bin/zim", line 38, in <module>
import zim
File "/usr/lib/python2.7/site-packages/zim/__init__.py", line 147, in <module>
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python2.7/locale.py", line 581, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
Sublime shows me this warning message:
Your system's locale is set to a value that can not handle non-ASCII characters. Package Control can not properly work unless this is fixed.
On Linux, please reference your distribution's docs for information on properly setting the LANG and LC_CTYPE environmental variables. As a temporary work-around, you can launch Sublime Text from the terminal with:
My locale.conf:
LANG="en_US.UTF-8"
LANGUAGE="en_US:CS_CZ"
LC_COLLATE="C"
LC_ALL="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
Command locale:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.US-ASCII
LC_CTYPE=en_US.US-ASCII
LC_NUMERIC=cs_CZ.US-ASCII
LC_TIME=cs_CZ.US-ASCII
LC_COLLATE=en_US.US-ASCII
LC_MONETARY=cs_CZ.US-ASCII
LC_MESSAGES="en_US.US-ASCII"
LC_PAPER="en_US.US-ASCII"
LC_NAME="en_US.US-ASCII"
LC_ADDRESS="en_US.US-ASCII"
LC_TELEPHONE="en_US.US-ASCII"
LC_MEASUREMENT=cs_CZ.US-ASCII
LC_IDENTIFICATION="en_US.US-ASCII"
LC_ALL=
My locale.gen:
$ cat /etc/locale.gen | grep -v "#"
cs_CZ.UTF-8 UTF-8
en_US.UTF-8 UTF-8
Can I ask you how to set my locale?
Last edited by waldauf (2017-06-29 20:16:02)
Offline
LC_ALL="en_US.UTF-8"
This would negate all the other settings in locale.conf
What is the output of
$ env
$ locale -a
Offline
I did these settings now:
Set LC_ALL="en_US.UTF8 in /etc/locale.conf
LANG="en_US.UTF-8"
LANGUAGE="en_US:CS_CZ"
LC_COLLATE="C"
LC_ALL="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
In KDE's Regional Setting (tab Formats) set region=CZ and disabled Detailed settings.
Removed ~/.config/locale.conf file (which seemed to me that didn't work.
And now it seems that works. My terminal emulator speaks in English what I needed. In fact I tried to set fine-grain locale without LC_ALL but I failed. This is much better and less work around.
@loqs - thanks for your advice. It was for me quick win. ;]
Last edited by waldauf (2017-06-29 12:48:08)
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline