崇高的文字& Linux的KDE。系统区域设置设置为不能处理非ASCII字符的值 [英] Sublime text & Linux-KDE. System locales is set to a value that can not handle non-ASCII characters

查看:273
本文介绍了崇高的文字& Linux的KDE。系统区域设置设置为不能处理非ASCII字符的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开ST3时,我收到这个错误。软件包控制不起作用。


软件包控制您的系统本地设置为不能
处理非ASCII字符的值。软件包控制不能正常工作
,除非这是固定的。



在Linux上,请参考您的发行版文档正确的
设置LANG环境变量。作为一个临时的解决方案,
您可以从终端启动升级文本:



LANG = en_US.UTF-8 sublime_text


临时解决方法无效。另外,当我在终端中写locale时,我得到:

  locale:不能将LC_CTYPE设置为默认语言环境:没有这样的文件或目录
语言环境:无法将LC_MESSAGES设置为默认语言环境:无此类文件或目录
语言环境:无法将LC_ALL设置为默认语言环境:无此类文件或目录
LANG = en_EC.UTF-8
LANGUAGE = zh: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 =

请帮忙。我在Ubuntu + KDE上,我现在盲目地编码,没有安装高档软件包。

解决方案

我尝试了同样的问题在Ubuntu 14.04 LTS上通过规定的方法在ChromeOS,Sublime Text Build 3083的Chroot中安装软件包控制。 p>

这个问题的一个明显的解决方案存在于这个问题的一个重复的地方: https: //askubuntu.com/a/440341/200027



该解决方案涉及添加bash -cLANG = en_US.UTF-8 / opt / sublime_text / sublime_text到位于/usr/applications/share/sublime_text.desktop的Sublime的.desktop统一启动文件的适当Exec行,如下所示:

  [桌面条目] 
版本= 1.0
Type =应用程序
名称= Sublime文本
GenericName =文本编辑器
注释=复杂的文本编辑器代码,标记和散文
Exec = bash -cLANG = 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;

[桌面操作窗口]
名称=新窗口
Exec = bash -cLANG = en_US.UTF-8 / opt / sublime_text / sublime_text -n
OnlyShowIn = Unity;

[桌面动作文档]
名称=新建文件
Exec = bash -cLANG = en_US.UTF-8 / opt / sublime_text / sublime_text --command new_file
OnlyShowIn = Unity;

请注意,您需要sudo才能编辑该桌面启动文件。


I'm getting this error when I open ST3. Package control is not working.

Package Control Your system's local 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 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

The termporary workaround doesn't 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'm on Ubuntu+KDE, Im coding blindly now with no sublime packages installed.

解决方案

I had the same issue while attempting to install Package Control on Ubuntu 14.04 LTS via the prescribed method within Chroot of ChromeOS, Sublime Text Build 3083.

A sensible solution for this problem exists in a duplicate of this issue 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 appropriate Exec lines of Sublime's .desktop unity launch file located at /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 that desktop launch file.

这篇关于崇高的文字& Linux的KDE。系统区域设置设置为不能处理非ASCII字符的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆