svn-scm icon indicating copy to clipboard operation
svn-scm copied to clipboard

Extension won't work on linux with no en_US.utf-8 locale (install it will solve)

Open MichaelSuen-thePointer opened this issue 5 years ago • 1 comments
trafficstars

  • VSCode Version: 1.43.2
  • OS Version: Debian 9.9 stretch
  • Extension Version: 2.10.6
  • System Language: Chinese Simplified
  • SVN Version: 1.9.5

Issue

The extension won't work on systems without en_US.UTF-8 locale, it produces the following error:

The problem is easy to solve, but took me a long time to figure out what was happened.

After modifying /etc/locale.gen and run locale-gen, everything works fine.

Steps to Reproduce

  1. get a linux system without en_US.utf-8 locale
  2. try use the extension

SVN Output

$ svn: warning: cannot set LC_CTYPE locale $ svn: warning: environment variable LC_ALL is en_US.UTF-8 $ svn: warning: please check that your locale name is correct

MichaelSuen-thePointer avatar Mar 26 '20 11:03 MichaelSuen-thePointer

I am experiencing the same issue when trying to use a Docker container based on official Ubuntu images as my development environment. These images are very basic and don't have any locales installed except C.UTF-8. I think C.UTF-8 is a safer locale to default to than en_US.UTF-8.

i-ky avatar Apr 12 '21 15:04 i-ky