我已经下载并解压了 Red Hat linux 的 Sublime 3 包。我的/downloads/sublime_text_3 中有 sublime_text。
当我打开 ./sublime_text 时,出现以下错误
Package Control
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 environmental variable. As a temporary work-around, you can launch Sublime Text from the terminal with:
LANG=en_US.UTF-8 sublime_text
我尝试更改 setenv LANG en_US.UTF-8 没有任何积极影响。有没有人解决过同样的问题。
谢谢
最佳答案
您是否尝试过 package control issue on Github 中给出的解决方案? ?
如 LANG=en_US.UTF-8 sublime_text
和 LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 sublime_text
不工作,您可以尝试以下操作:
Define a system wide locale [...]:
in
/etc/locale.conf
:LANG="en_US.UTF-8"
And reboot your sytem.
或者
simply changing only the LANG variable in
/etc/locale.conf
from my default setting toen_US.UTF-8
, as so --/etc/locale.conf:
LANG=en_US.UTF-8 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=
-- but Package Control continued to throw the error until I culled the file down to only the first line --
/etc/locale.conf:
LANG=en_US.UTF-8
Hope that helps someone!
您也可以查看 this question .
关于sublimetext3 - Sublime 包 LANG 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38668797/