svn-scm
svn-scm copied to clipboard
Extension won't work on linux with no en_US.utf-8 locale (install it will solve)
- 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
- get a linux system without en_US.utf-8 locale
- 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
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.