<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>423995</bug_id>
          
          <creation_ts>2020-07-08 14:07:12 +0000</creation_ts>
          <short_desc>Plasma 5.19.3 overwrites systemwide locale settings despite &quot;no change&quot; is selected in kcm_formats</short_desc>
          <delta_ts>2020-07-15 19:31:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_formats</component>
          <version>5.19.3</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression</keywords>
          <priority>VHI</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Till Schäfer">till2.schaefer</reporter>
          <assigned_to name="Sebastian Kügler">sebas</assigned_to>
          <cc>alexander.lohnau</cc>
    
    <cc>maciej.stanczew</cc>
    
    <cc>medhefgo</cc>
    
    <cc>nate</cc>
    
    <cc>plasma-bugs-null</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-workspace/commit/1cfd9e882df3af50219b730493947e8ee02b5ed4</cf_commitlink>
          <cf_versionfixedin>5.19.4</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1942436</commentid>
    <comment_count>0</comment_count>
    <who name="Till Schäfer">till2.schaefer</who>
    <bug_when>2020-07-08 14:07:12 +0000</bug_when>
    <thetext>Since Plasma 5.19.3 (upgraded from 5.19.2) my clock and all other applications changed from the German time format to the US format.

Somehow Plasma does no longer respect my global / system wide settings of LANG/LC_ environment variables despite the fact, that I have selected &quot;no change&quot; and disabled the checkbox &quot;detailed settings&quot; in kcm_formats. 

This is traceable using the commands locale and env inside plasma and on some TTY:

INSIDE PLASMA
$ env | grep -e &quot;LANG\|LC_&quot;
LANGUAGE=
LC_MONETARY=en_US.utf8
LANG=en_US.utf8
LC_MEASUREMENT=en_US.utf8
LC_TIME=en_US.utf8
LC_COLLATE=C
LC_NUMERIC=en_US.utf8

$ locale
LANG=en_US.utf8
LC_CTYPE=&quot;en_US.utf8&quot;
LC_NUMERIC=en_US.utf8
LC_TIME=en_US.utf8
LC_COLLATE=C
LC_MONETARY=en_US.utf8
LC_MESSAGES=&quot;en_US.utf8&quot;
LC_PAPER=&quot;en_US.utf8&quot;
LC_NAME=&quot;en_US.utf8&quot;
LC_ADDRESS=&quot;en_US.utf8&quot;
LC_TELEPHONE=&quot;en_US.utf8&quot;
LC_MEASUREMENT=en_US.utf8
LC_IDENTIFICATION=&quot;en_US.utf8&quot;
LC_ALL=


ON TTY
$ env | grep -e &quot;LANG\|LC_&quot;
LANG=en_US.utf8
LC_TIME=de_DE.utf8
LC_COLLATE=C

$ locale
LANG=en_US.utf8
LC_CTYPE=&quot;en_US.utf8&quot;
LC_NUMERIC=&quot;en_US.utf8&quot;
LC_TIME=de_DE.utf8
LC_COLLATE=C
LC_MONETARY=&quot;en_US.utf8&quot;
LC_MESSAGES=&quot;en_US.utf8&quot;
LC_PAPER=&quot;en_US.utf8&quot;
LC_NAME=&quot;en_US.utf8&quot;
LC_ADDRESS=&quot;en_US.utf8&quot;
LC_TELEPHONE=&quot;en_US.utf8&quot;
LC_MEASUREMENT=&quot;en_US.utf8&quot;
LC_IDENTIFICATION=&quot;en_US.utf8&quot;
LC_ALL=


I have tried to delete ~/.config/plasma-localerc, but this did not changed anything. The config was recreated using the following settings.

$ cat ~/.config/plasma-localerc 
[Formats]
LANG=en_US.utf8



Operating System: Gentoo Linux
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
Kernel Version: 5.7.7-gentoo
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 23.5 GiB of RAM
Graphics Processor: GeForce GTX 970/PCIe/SSE2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1942445</commentid>
    <comment_count>1</comment_count>
    <who name="Till Schäfer">till2.schaefer</who>
    <bug_when>2020-07-08 14:21:47 +0000</bug_when>
    <thetext>This become especially problematic in combination with Bug 403580</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1942573</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-07-09 03:11:11 +0000</bug_when>
    <thetext>Alexander, would you mind taking a look to see if this is related to your work in https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/100 which landed in Plasma 5.19.3? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1942581</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Lohnau">alexander.lohnau</who>
    <bug_when>2020-07-09 05:50:32 +0000</bug_when>
    <thetext>Yes this seems related to the MR, really sorry for causing issues :/

I would recommend reverting the commit since it causes issues and then settling for a different approach to the original issue.

PS: The MR is not related to the invalid suggestions mentioned in BUG 403580, just saying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1942596</commentid>
    <comment_count>4</comment_count>
    <who name="Till Schäfer">till2.schaefer</who>
    <bug_when>2020-07-09 09:38:03 +0000</bug_when>
    <thetext>I can confirm that the mentioned commit is the issue. I have applied the revert patch here on top of plasma 5.19.3 and it fixes the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1944070</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-07-15 19:31:18 +0000</bug_when>
    <thetext>Git commit bd8aa17588233dd6f8927c17aef193f6e1df5e58 by Nate Graham.
Committed on 15/07/2020 at 19:30.
Pushed by ngraham into branch &apos;Plasma/5.19&apos;.

Revert &quot;Fix broken ENV variables for detailed settings&quot;

This reverts commit edc64d04a1e569d7032c41e6ee0ebf59833c26f2.

This commit unfortunately caused a serious regression. Another approach
will be needed to solve 176650 and 417070.
FIXED-IN: 5.19.4
CCMAIL: alexander.lohnau@gmx.de

M  +10   -21   startkde/startplasma.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/bd8aa17588233dd6f8927c17aef193f6e1df5e58</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1944071</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-07-15 19:31:49 +0000</bug_when>
    <thetext>Git commit 1cfd9e882df3af50219b730493947e8ee02b5ed4 by Nate Graham.
Committed on 15/07/2020 at 19:31.
Pushed by ngraham into branch &apos;master&apos;.

Revert &quot;Fix broken ENV variables for detailed settings&quot;

This reverts commit edc64d04a1e569d7032c41e6ee0ebf59833c26f2.

This commit unfortunately caused a serious regression. Another approach
will be needed to solve 176650 and 417070.
FIXED-IN: 5.19.4
CCMAIL: alexander.lohnau@gmx.de

M  +10   -21   startkde/startplasma.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/1cfd9e882df3af50219b730493947e8ee02b5ed4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>