Bug 366232 - Konsole sets $LANG to en_US.US-ASCII on startup and tab creation
Summary: Konsole sets $LANG to en_US.US-ASCII on startup and tab creation
Status: RESOLVED DOWNSTREAM
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 16.04.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-29 07:01 UTC by Kenny Jackson
Modified: 2016-07-31 01:32 UTC (History)
1 user (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 Kenny Jackson 2016-07-29 07:01:20 UTC
If Konsole isn't told specifically not to (via the environment variable list in the profile settings area), it sets $LANG to en_US.US-ASCII when launched, overriding the default locale. 

Reproducible: Always

Steps to Reproduce:
1. Edit the current Konsole profile, setting at least one environment variable and not setting $LANG. Apply your changes.
2. Open a new tab
3. Check $LANG

Actual Results:  
$LANG is en_US.US-ASCII

Expected Results:  
$LANG should be en_US.UTF-8, which is the only locale generated on the system and the only one uncommented in /etc/locale.gen and specified in /etc/locale.conf.

An incorrect $LANG, especially if that locale doesn't exist on the system, causes problems for mandb, among other things. I first noticed it because mandb errored when installing packages via pacman.
Comment 1 Christoph Feck 2016-07-31 01:32:47 UTC
There is no such string in Konsole, so that value comes from the configuration files. Please report this issue to the bug tracker of your distribution.