Detected locale "C" with character encoding "ANSI_X3.4-1968"
-
Hello! In my own Linux image I try to start any Qt app. But I get warning
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, but has failed to switch to one. If this causes problems, reconfigure your locale. See the locale(1) manual for more information.
But if I do
export LC_ALL=en_US.utf8 && ./myapp
Then works without warning. How to ask Qt to switch to en_US.utf8 by himself? May be set something in my toolchain_cross.cmake file? I use it to build Qt from source code...
-
@DungeonLords You should rather change your locale to UTF-8. This should actually be the default with most Linux distributions. What Linux distribution do you use.
You can check what locale is configured on your system using "locale" command.
-
-
anonymous@amnesia:~/vlc$ locale
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=
this is the output of the locale command. i guess my locale is utf8. why am i still getting this error: configure: error: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual -
@turmoiloil said in Detected locale "C" with character encoding "ANSI_X3.4-1968":
why am i still getting this error
Looks like Qt does not support C.UTF-8.
How did you install Qt?