Skip to content
Browse files

Make sure that a LANG of C is not set in the user session, use en_US …

…instead (PCDM default locale)
  • Loading branch information...
1 parent 9c27073 commit fbbd5c0ce961b73774bf633b33be643943f73572 @beanpole135 beanpole135 committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src-qt4/PCDM/src/pcdm-xprocess.cpp
View
4 src-qt4/PCDM/src/pcdm-xprocess.cpp
@@ -169,8 +169,8 @@ void XProcess::setupSessionEnvironment(){
// Get the current locale code
QLocale mylocale;
QString langCode = mylocale.name();
- if( langCode.toLower() == "c" ){} // do nothing extra to it
- else if(!environ.value("MM_CHARSET").isEmpty() ){ langCode.append( "."+environ.value("MM_CHARSET") ); }
+ if( langCode.toLower() == "c" ){ langCode = "en_US"; } // default to the US english (PCDM code default), LANG=C causes problems
+ if(!environ.value("MM_CHARSET").isEmpty() ){ langCode.append( "."+environ.value("MM_CHARSET") ); }
else{ langCode.append(".UTF-8"); }
// USER, HOME, and SHELL are set by the "su" login
environ.insert("LOGNAME",xuser); //Login name

0 comments on commit fbbd5c0

Please sign in to comment.
Something went wrong with that request. Please try again.