gpt4 book ai didi

python - Sublime text 和 Linux-KDE。系统区域设置设置为无法处理非 ASCII 字符的值

转载 作者:太空宇宙 更新时间:2023-11-04 03:42:48 24 4
gpt4 key购买 nike

打开 ST3 时出现此错误。包控制不起作用。

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

临时解决方法不起作用。另外,当我在终端中写入“区域设置”时,我得到:

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=

请帮忙。我使用的是 Ubuntu+KDE,我现在在没有安装 sublime 软件包的情况下盲目编码。

最佳答案

我在尝试通过 the prescribed method 在 Ubuntu 14.04 LTS 上安装 Package Control 时遇到了同样的问题在 ChromeOS 的 Chroot 中,Sublime Text Build 3083。

此问题的合理解决方案存在于此问题的副本中:https://askubuntu.com/a/440341/200027

解决方案包括将“bash -c "LANG=en_US.UTF-8/opt/sublime_text/sublime_text”添加到位于/usr/applications/share/sublime_text.desktop 的 Sublime .desktop unity 启动文件的相应 Exec 行,如下所示:

[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;

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

关于python - Sublime text 和 Linux-KDE。系统区域设置设置为无法处理非 ASCII 字符的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29107032/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com