解决svn "cannot set LC_CTYPE locale"的问题
在ubuntu 8.10下安装的svn,在将Ubuntu的语言修改为英文之后,出现错误警告:
$ svn
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_US.UTF-8
svn: warning: please check that your locale name is correct
Type 'svn help' for usage.
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_US.UTF-8
svn: warning: please check that your locale name is correct
Type 'svn help' for usage.
解决方法很简单,修改/etc/profile:
sudo vi /etc/profile
加入一行:
export LC_ALL=C
source /etc/profile
加入一行:
export LC_ALL=C
source /etc/profile