March 18, 2008
‘SVN: Warning Cannot Set LC_CTYPE Locale’ Solution
Today while I was using Subversion at work, I was getting annoyed with the warnings we were getting on our development server. I finally decided to look up the warnings to see how to resolve it and I found a solution (at least for us). Here are the warnings we got when I do either an svn up (update) or svn info.
-bash-3.00$ svn info
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_US
svn: warning: please check that your locale name is correct
I can’t guarantee that it will work for everyone, but if it helps a few people, it was worth it. All you need to do is go into your favorite shell (tested on bash since it is the default unix shell) and type the following and then hit enter.
Note: This only works on a one-time basis. If you want it to be permanent, you will have to add it to your login script.
export LC_ALL=C
I hope this helps!
