SVN cannot set LC_CTYPE locale

后端 未结 12 2349
醉话见心
醉话见心 2021-01-30 03:39

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 UT         


        
12条回答
  •  独厮守ぢ
    2021-01-30 04:33

    Check the output of

    locale -a
    

    If the locale that SVN is complaining about isn't installed, then you can install it.

    You might need to do:

    sudo apt-get install language-pack-en-base
    

    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
    

    Alternatively as Ankit writes in his answer:

    export LC_ALL=C
    

    may work (in your current session, or in your .profile).

提交回复
热议问题