Bug 337676 - Locale format is wrongly formatted
Summary: Locale format is wrongly formatted
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_formats (show other bugs)
Version: 5.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-21 15:45 UTC by klavkalashj
Modified: 2021-10-30 04:35 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description klavkalashj 2014-07-21 15:45:49 UTC
I had problems with certain nordic letters (åäö) in applications like Chrome and Steam. I set global locale to en_US.utf8 in /etc/locale.conf (I like having english language but I still type in swedish) but those letters could not be typed in those applications. If I started them with for example 'export LANG=en_US.utf8' it worked. After some digging I found that, when setting the language in KDE Systemsettings, a script is created in  ~/.config/plasma-locale-settings.sh, containing for example the line 'export LANG=en_US'. I found that if I manually edit that line to say instead 'export LANG=en_US.utf8', everything works as expected. So I guess that systemsettings should be changed to also include the charset in the export line.
Comment 1 Hrvoje Senjan 2014-07-21 16:06:38 UTC
This has AFAIK been resolved with commits c79d60536d6af6f59ef0511e8d837e06a7ee0336 and 8ad16d2211dbdbde8e1125c0822953b6dae0293a by Lukas Tinkl (so, either git master, or Plasma/5.0 branch have it already). (the repo in question is kde:plasma-desktop)
Comment 2 klavkalashj 2014-07-21 23:22:15 UTC
I just compiled systemsettings5 and all its dependencies from git, and I see no change. Output when running systemsettings5 in terminal:

QWidget::setWindowModified: The window title does not contain a '[*]' placeholder
Got configs "knotifications5/kde.notifyrc" "kde.notifyrc"
Got groups ()
Got notification " "messageInformation" " with actions: ""
Wrote script:  "/home/oscar/.config/plasma-locale-settings.sh" 
 "# Generated script, do not edit
# Exports language-format specific env vars from startkde.
# This script has been generated from kcmshell5 formats.
# It will automatically be overwritten from there.
export LANG=sv_SE                                                                                                                                                                  
export LC_NUMERIC=C                                                                                                                                                                
export LC_TIME=C                                                                                                                                                                   
export LC_MONETARY=C                                                                                                                                                               
export LC_MEASUREMENT=C                                                                                                                                                            
export LC_COLLATE=C                                                                                                                                                                
export LANGUAGE=en_US                                                                                                                                                              
"                                                                                                                                                                                  

Problem persists. Did I miss something? Do I need to build the entire plasma-desktop from git?
Comment 3 klavkalashj 2014-07-21 23:25:35 UTC
I used this PKGBUILD from Arch Linux AUR to build it: https://aur.archlinux.org/packages/sy/systemsettings-git/PKGBUILD
Comment 4 Hrvoje Senjan 2014-07-22 01:08:07 UTC
(In reply to klavkalashj from comment #2)
> Problem persists. Did I miss something? Do I need to build the entire
> plasma-desktop from git?

Only plasma-desktop repository (and Plasma/5.0 branch will do)
Comment 5 klavkalashj 2014-07-22 15:28:45 UTC
Ok so I just compiled the entire plasma-desktop and systemsettings from the repo you mentioned, and it still is not working. I think the patch does not work...
Comment 6 Nate Graham 2021-09-30 17:39:44 UTC
Are you still seeing this issue in Plasma 5?
Comment 7 Bug Janitor Service 2021-10-15 04:35:21 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2021-10-30 04:35:12 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!