You are not logged in.

#1 2026-01-09 05:12:55

jronald
Member
Registered: 2022-05-09
Posts: 209

[SOLVED] locale problems (Qt Creator & console)

When run an application in Qt Creator, "Application Output":

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
for more information.

locale info

$ locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=zh_CN.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

How to fix the problem in Qt Creator?
How to fix the problem for locale (locale: Cannot set LC_ALL to default locale: No such file or directory)?

Last edited by jronald (2026-01-09 08:39:47)

Offline

#2 2026-01-09 05:22:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,565

Re: [SOLVED] locale problems (Qt Creator & console)

When you did your installation, did you configure your locale?

https://wiki.archlinux.org/title/Instal … calization


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2026-01-09 07:25:57

jronald
Member
Registered: 2022-05-09
Posts: 209

Re: [SOLVED] locale problems (Qt Creator & console)

ewaller wrote:

When you did your installation, did you configure your locale?

Yes

Offline

#4 2026-01-09 08:03:30

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,057

Re: [SOLVED] locale problems (Qt Creator & console)

And did you configure it correctly?

locale -a
localectl

Offline

#5 2026-01-09 08:06:58

jronald
Member
Registered: 2022-05-09
Posts: 209

Re: [SOLVED] locale problems (Qt Creator & console)

$ locale -a
C
C.utf8
en_US.utf8
POSIX

$ localectl
System Locale: LANG=en_US.UTF-8
    VC Keymap: us
   X11 Layout: us
    X11 Model: pc105+inet
  X11 Options: terminate:ctrl_alt_bksp
Operating System: Arch Linux 
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Kernel Version: 6.18.3-arch1-1 (64-bit)
Graphics Platform: Wayland

Last edited by jronald (2026-01-09 08:08:44)

Offline

#6 2026-01-09 08:22:25

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,057

Re: [SOLVED] locale problems (Qt Creator & console)

Offline

#7 2026-01-09 08:39:21

jronald
Member
Registered: 2022-05-09
Posts: 209

Re: [SOLVED] locale problems (Qt Creator & console)

Both problems are solved by deleting "~/.config/plasma-localerc",
though I don't know why.

Thanks

Last edited by jronald (2026-01-09 08:39:32)

Offline

Board footer

Powered by FluxBB