Ignore:
Timestamp:
Nov 6, 2013 8:30:45 AM (8 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
dbe09b6
Parents:
9c27073
Message:

Make sure that a LANG of C is not set in the user session, use en_US instead (PCDM default locale)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/src/pcdm-xprocess.cpp

    rb28c8d9 rfbbd5c0  
    170170  QLocale mylocale; 
    171171  QString langCode = mylocale.name(); 
    172   if( langCode.toLower() == "c" ){} // do nothing extra to it 
    173   else if(!environ.value("MM_CHARSET").isEmpty() ){ langCode.append( "."+environ.value("MM_CHARSET") ); } 
     172  if( langCode.toLower() == "c" ){ langCode = "en_US"; } // default to the US english (PCDM code default), LANG=C causes problems 
     173  if(!environ.value("MM_CHARSET").isEmpty() ){ langCode.append( "."+environ.value("MM_CHARSET") ); } 
    174174  else{ langCode.append(".UTF-8"); } 
    175175  // USER, HOME, and SHELL are set by the "su" login 
Note: See TracChangeset for help on using the changeset viewer.