【发布时间】:2016-07-29 23:23:18
【问题描述】:
我已经下载并解压了 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,但没有任何积极影响。
【问题讨论】:
-
按照github.com/wbond/package_control/commit/…尝试
LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 sublime_text -
感谢您的帮助。我尝试将 sublime_text.desktop 更改为上述命令。但是包控制错误依然存在。
-
这样从控制台运行它是否有效?上面您刚刚提到使用 setenv 来执行此操作,但也许这没有传播到应用程序? (这不是我通常使用的构造)。