#1091328 sddm: SDDM usess strange locale

Package:
sddm
Source:
sddm
Description:
modern display manager for X11
Submitter:
Helge Kreutzmann
Date:
2025-05-20 07:36:04 UTC
Severity:
normal
#1091328#5
Date:
2024-12-23 21:17:46 UTC
From:
To:
When SDDM runs, the following is logged:
2024-12-23T19:20:20.080284+01:00 twentytwo sddm[2563]: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
2024-12-23T19:20:20.080344+01:00 twentytwo sddm[2563]: Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
2024-12-23T19:20:20.080365+01:00 twentytwo sddm[2563]: If this causes problems, reconfigure your locale. See the locale(1) manual
2024-12-23T19:20:20.080384+01:00 twentytwo sddm[2563]: for more information.

It looks like SDDM uses a strange locale.

If these strings are harmless, consider adding appropriate logcheck
rules to filter them out.

#1091328#10
Date:
2025-05-20 07:22:03 UTC
From:
To:
Hi,

I've seen this in the openQA tests as well.

It looks like this is caused by line 133 in Auth.cpp [1]
As a fallback, it should use 'C.UTF-8' instead of 'C'.

Additionally, the file '/etc/locale.conf' is read and parsed, but the
language that is configured in that file is ignored. Is there an
else-statement missing for the if-statement in line 126?

With kind regards,
Roland Clobus

[1]
https://sources.debian.org/src/sddm/0.21.0+git20250502.4fe234b-1/src/auth/Auth.cpp/?hl=133#L133

#1091328#13
Date:
2025-05-20 07:22:03 UTC
From:
To:
Hi,

I've seen this in the openQA tests as well.

It looks like this is caused by line 133 in Auth.cpp [1]
As a fallback, it should use 'C.UTF-8' instead of 'C'.

Additionally, the file '/etc/locale.conf' is read and parsed, but the
language that is configured in that file is ignored. Is there an
else-statement missing for the if-statement in line 126?

With kind regards,
Roland Clobus

[1]
https://sources.debian.org/src/sddm/0.21.0+git20250502.4fe234b-1/src/auth/Auth.cpp/?hl=133#L133