SVN无法设置LC_CTYPE语言环境 [英] SVN cannot set LC_CTYPE locale
问题描述
每当我在服务器中使用SVN时,我都会收到以下错误消息:
I started getting the following error whenever i use SVN in my server:
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is UTF-8
svn: warning: please check that your locale name is correct
我的猜测是我的svn客户端(使用Versions App)和服务器svn可能有问题...
my guess is that there might be something wrong with my svn client(Using Versions App) and the server svn...
每当我使用这样的命令时,如何使该警告从服务器上永久消失?
how can i make this warning disappear forever from the server whenever i use such commands?
推荐答案
检查
locale -a
如果未安装SVN抱怨的语言环境,则可以安装它.
If the locale that SVN is complaining about isn't installed, then you can install it.
您可能需要这样做:
sudo apt-get install language-pack-en-base
后面跟随一个(取决于SVN的确切错误,您的情况是第一种情况):
followed by one of (depending on the exact error from SVN, yours is the first case):
sudo locale-gen UTF-8
sudo locale-gen en_GB.UTF-8
sudo locale-gen en_US.UTF-8
或者如Ankit在他的答案中所写:
Alternatively as Ankit writes in his answer:
export LC_ALL=C
可能会起作用(在您当前的会话中,或在您的.profile中).
may work (in your current session, or in your .profile).
这篇关于SVN无法设置LC_CTYPE语言环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!