Bug 389529 - Using Formats with 'Detailed Settings' causes errors
Summary: Using Formats with 'Detailed Settings' causes errors
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_formats (show other bugs)
Version: 5.11.95
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-27 21:54 UTC by David
Modified: 2022-03-19 20:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.24


Attachments
custom_format (60.96 KB, image/png)
2021-10-04 23:47 UTC, David
Details
locales_err (55.54 KB, image/png)
2021-10-05 16:56 UTC, David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David 2018-01-27 21:54:27 UTC
When setting different standards for formats (systemsettings5 --> Regional Settings --> Formats --> check 'Detailed Settings'), it seems that something is set incorrectly and affects other applications. 

I am not sure what the problem is exactly, but it causes problems in other applications – for example:
-R throws this message: Setting LC_TIME failed, using "C" 
-wine throws this message: locale 'en_US' cannot be set 
-Ark fails to extract files with non-ACII characters (and displays them as question marks)
Comment 1 Nate Graham 2021-09-30 17:47:31 UTC
What exactly did you do in the KCM? Can you share a screenshot of it?
Comment 2 David 2021-10-04 23:47:25 UTC
Created attachment 142156 [details]
custom_format

Attached is an example of a configuration that would give problems.
Comment 3 Nate Graham 2021-10-05 14:08:41 UTC
Thanks. Can you paste the output of `locale` and `cat ~/.config/plasma-localerc`?
Comment 4 David 2021-10-05 16:56:34 UTC
Created attachment 142175 [details]
locales_err

Attached is a screenshot of a configuration that gave me errors right when calling "locale". I'm not 100% sure if errors in applications happen instantateously, or only after going through an update of the kernel (or some other component, not sure which) which forces the system to rebuild locales (and which takes several minutes every time, don't remember the exact message when that kind of thing happens).

Output:
david@debian:~$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_DE.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_DE.UTF-8"
LC_NUMERIC="en_DE.UTF-8"
LC_TIME="en_DE.UTF-8"
LC_COLLATE="en_DE.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_DE.UTF-8"
LC_PAPER="en_DE.UTF-8"
LC_NAME="en_DE.UTF-8"
LC_ADDRESS="en_DE.UTF-8"
LC_TELEPHONE="en_DE.UTF-8"
LC_MEASUREMENT=fo_DK.UTF-8
LC_IDENTIFICATION="en_DE.UTF-8"
LC_ALL=
david@debian:~$ cat ~/.config/plasma-localerc
[Formats]
LANG=en_DE.UTF-8
LC_MEASUREMENT=fo_DK.UTF-8
LC_MONETARY=en_US.UTF-8
useDetailed=true
Comment 5 Nate Graham 2021-10-05 17:20:47 UTC
Git commit 25485ac8d35ec25c1cf1475516016d6f8b93a9f2 by Nate Graham, on behalf of Han Young.
Committed on 05/10/2021 at 17:20.
Pushed by ngraham into branch 'master'.

port formats to qml
Related: bug 279658, bug 338599, bug 362865, bug 410606, bug 422467, bug 426313

FIXED-IN: 5.24

M  +16   -7    kcms/formats/CMakeLists.txt
D  +0    -113  kcms/formats/formats.desktop
M  +46   -326  kcms/formats/kcmformats.cpp
M  +15   -33   kcms/formats/kcmformats.h
D  +0    -385  kcms/formats/kcmformatswidget.ui

https://invent.kde.org/plasma/plasma-workspace/commit/25485ac8d35ec25c1cf1475516016d6f8b93a9f2
Comment 6 Ben Cooksley 2021-10-06 07:45:18 UTC
Git commit 32a565bae7e2f7243d2715df56b8617dc8dd3612 by Ben Cooksley, on behalf of Han Young.
Committed on 06/10/2021 at 07:41.
Pushed by bcooksley into branch 'master'.

kcms/formats: port to QML
Related: bug 279658, bug 338599, bug 362865, bug 410606, bug 422467, bug 426313

FIXED-IN: 5.24

M  +16   -7    kcms/formats/CMakeLists.txt
A  +66   -0    kcms/formats/exampleutility.cpp     [License: GPL(v2.0+)]
D  +0    -113  kcms/formats/formats.desktop
A  +61   -0    kcms/formats/formatssettings.kcfg
A  +6    -0    kcms/formats/formatssettings.kcfgc
M  +46   -326  kcms/formats/kcmformats.cpp
M  +15   -33   kcms/formats/kcmformats.h
D  +0    -385  kcms/formats/kcmformatswidget.ui
A  +176  -0    kcms/formats/localelistmodel.cpp     [License: GPL (v2+)]
A  +58   -0    kcms/formats/localelistmodel.h     [License: GPL (v2+)]
A  +140  -0    kcms/formats/optionsmodel.cpp     [License: GPL(v2.0+)]
A  +32   -0    kcms/formats/optionsmodel.h     [License: GPL(v2.0+)]
A  +126  -0    kcms/formats/package/contents/ui/main.qml     [License: LGPL(v3.0+)]
A  +23   -0    kcms/formats/package/metadata.desktop

https://invent.kde.org/plasma/plasma-workspace/commit/32a565bae7e2f7243d2715df56b8617dc8dd3612
Comment 7 David 2022-03-19 20:39:57 UTC
Issue is still present in 5.24.2 when setting a custom time format:
Setting LC_TIME failed, using "C"