Amazing text and Linux-KDE. System locals are assigned a value that cannot process non-ASCII characters

I get this error when opening ST3. Package management does not work.

Package Management Your local system is set to a value that cannot handle non-character characters. Package management may not work properly if this is not fixed.

On Linux, please refer to yours by setting the LANG environment variable. As a temporary work, you can run Sublime Text from the terminal:

LANG = ru_US.UTF-8 sublime_text

A temporary workaround does not work. Also, when I write 'locale' in the terminal, I get:

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_EC.UTF-8 LANGUAGE=en:es:en LC_CTYPE="en_EC.UTF-8" LC_NUMERIC=en_EC.UTF-8 LC_TIME=en_EC.UTF-8 LC_COLLATE="en_EC.UTF-8" LC_MONETARY=en_EC.UTF-8 LC_MESSAGES="en_EC.UTF-8" LC_PAPER=en_EC.UTF-8 LC_NAME=en_EC.UTF-8 LC_ADDRESS=en_EC.UTF-8 LC_TELEPHONE=en_EC.UTF-8 LC_MEASUREMENT=en_EC.UTF-8 LC_IDENTIFICATION=en_EC.UTF-8 LC_ALL= 

Please, help. I am in Ubuntu + KDE, Im now blindly encoding without any exalted packages.

0
python linux encoding sublimetext3 kde
source share
1 answer

I had the same problem when trying to install Package Control on Ubuntu 14.04 LTS through the prescribed method inside Chroot ChromeOS, Sublime Text Build 3083.

A reasonable solution to this problem exists in a duplicate of this problem here: https://askubuntu.com/a/440341/200027

The solution involves adding "bash -c" LANG = en_US.UTF-8 / opt / sublime_text / sublime_text to the corresponding Exec lines of the Sublime.desktop startup file located in / usr / applications / share / sublime _text.desktop as follows:

 [Desktop Entry] Version=1.0 Type=Application Name=Sublime Text GenericName=Text Editor Comment=Sophisticated text editor for code, markup and prose Exec=bash -c "LANG=en_US.UTF-8 /opt/sublime_text/sublime_text %F" Terminal=false MimeType=text/plain; Icon=sublime-text Categories=TextEditor;Development; StartupNotify=true Actions=Window;Document; [Desktop Action Window] Name=New Window Exec=bash -c "LANG=en_US.UTF-8/opt/sublime_text/sublime_text -n" OnlyShowIn=Unity; [Desktop Action Document] Name=New File Exec= bash -c "LANG=en_US.UTF-8/opt/sublime_text/sublime_text --command new_file" OnlyShowIn=Unity; 

Note that you will need sudo to edit this desktop launcher file.

0
source share

All Articles