USER FORUM
(you are viewing a thread; or go back to list of threads)
Sorry, only UTF-8 locales are supported (by Bob)
Solvespace 2.2 starts on openSuse Linux 42.2 with the message "Sorry, only UTF-8 locales are supported" end exits. It did the same thing with the older version. So I am a bit disappointed, because I'd be really interested to try it. Any idea anyone???
(no subject) (by whitequark)
Try running SolveSpace as:
$ LANG=en_US.UTF-8 solvespace
If that works, please post the output of the following command:
$ env | egrep '(LANG|LC_)'
$ LANG=en_US.UTF-8 solvespace
If that works, please post the output of the following command:
$ env | egrep '(LANG|LC_)'
UTF-8 message (by Federico Balaguer)
hello.
here is the output
$ env | egrep '(LANG|LC_)'
LANG=en_US_UTF-8
LANGUAGE=
here is the output
$ env | egrep '(LANG|LC_)'
LANG=en_US_UTF-8
LANGUAGE=
(no subject) (by whitequark)
There is some error with your environment. LANG should not be en_US_UTF-8. The workaround I specified above suffices.
LC_TIME and LC_MEASUREMENT repro this for me (by Marsh Ray)
marsh@mittens:~$ env | egrep '(LANG|LC_)'
LC_MEASUREMENT=en_VI.UTF-8
LANG=en_US.UTF-8
LANGUAGE=
LC_TIME=en_SE.UTF-8
marsh@mittens:~$ solvespace
Sorry, only UTF-8 locales are supported.
marsh@mittens:~$ LC_MEASUREMENT=en_US.UTF-8 solvespace
Sorry, only UTF-8 locales are supported.
marsh@mittens:~$ LC_TIME=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 solvespace
bash: warning: setlocale: LC_TIME: cannot change locale (en_SE.UTF-8)
Other than the warning, the last one works.
LC_MEASUREMENT=en_VI.UTF-8
LANG=en_US.UTF-8
LANGUAGE=
LC_TIME=en_SE.UTF-8
marsh@mittens:~$ solvespace
Sorry, only UTF-8 locales are supported.
marsh@mittens:~$ LC_MEASUREMENT=en_US.UTF-8 solvespace
Sorry, only UTF-8 locales are supported.
marsh@mittens:~$ LC_TIME=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 solvespace
bash: warning: setlocale: LC_TIME: cannot change locale (en_SE.UTF-8)
Other than the warning, the last one works.
(no subject) (by henry)
Para meu caso :
Ubuntu 18.04 "Armbian" orangePi_PC
Funcionou com:
~$ LC_ALL=en_US.UTF-8 solvespace
posteriormente criei:
~$vim solvespace.sh
# executa solvespace com a variavel global ALL
# a string & executa o aplicativo em 2 plano
#liberando o shell, para uso.
LC_ALL=en_US.UTF-8 solvespace &
Ubuntu 18.04 "Armbian" orangePi_PC
Funcionou com:
~$ LC_ALL=en_US.UTF-8 solvespace
posteriormente criei:
~$vim solvespace.sh
# executa solvespace com a variavel global ALL
# a string & executa o aplicativo em 2 plano
#liberando o shell, para uso.
LC_ALL=en_US.UTF-8 solvespace &
docker container (by Todd)
I'm trying to build and run solvespace from a docker container. While I can build, I cannot run, due to this same UTF-8 error. See details in my commit here:
https://github.com/ToddG/solve...1e141257f9b913c7f09e4f3b5965bd
https://github.com/ToddG/solve...1e141257f9b913c7f09e4f3b5965bd
locales (by Todd)
I figured out how to correctly set the locales:
https://github.com/ToddG/solve...e16794042c1eacafa8ec6b2c8a86e0
Issue solved.
Added this to my dockerfile:
# locales
RUN apt-get install locales apt-utils
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
https://github.com/ToddG/solve...e16794042c1eacafa8ec6b2c8a86e0
Issue solved.
Added this to my dockerfile:
# locales
RUN apt-get install locales apt-utils
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
Post a reply to this comment: