Bug 366232

Summary: Konsole sets $LANG to en_US.US-ASCII on startup and tab creation
Product: [Applications] konsole Reporter: Kenny Jackson <dsgamecube>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: cfeck
Priority: NOR    
Version: 16.04.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

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.