Commit 67509488 authored by Robert Knight's avatar Robert Knight
Browse files

Temporary solution to bug #149300. Set LANGUAGE to a null string in the child...

Temporary solution to bug #149300.  Set LANGUAGE to a null string in the child process's environment unless set explicitly in the Profile options.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=710022
parent 78084d20
...@@ -155,6 +155,20 @@ int Pty::start(const QString& program, ...@@ -155,6 +155,20 @@ int Pty::start(const QString& program,
setEnvironment("WINDOWID", QString::number(winid)); setEnvironment("WINDOWID", QString::number(winid));
// unless the LANGUAGE environment variable has been set explicitly
// set it to a null string
// this fixes the problem where KCatalog sets the LANGUAGE environment
// variable during the application's startup to something which
// differs from LANG,LC_* etc. and causes programs run from
// the terminal to display mesages in the wrong language
// this can happen if LANG contains a language which KDE
// does not have a translation for
// BR:149300
if (!environment.contains("LANGUAGE"))
setUsePty(All, addToUtmp); setUsePty(All, addToUtmp);
pty()->open(); pty()->open();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment