[PC-BSD Commits] r21663 - pcbsd-projects/PCDM

svn at pcbsd.org svn at pcbsd.org
Tue Feb 26 16:22:43 PST 2013


Author: kenmoore
Date: 2013-02-27 00:22:43 +0000 (Wed, 27 Feb 2013)
New Revision: 21663

Modified:
   pcbsd-projects/PCDM/pcdm-backend.cpp
Log:
Now the LANG environment variable should be set properly.



Modified: pcbsd-projects/PCDM/pcdm-backend.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-backend.cpp	2013-02-27 00:14:50 UTC (rev 21662)
+++ pcbsd-projects/PCDM/pcdm-backend.cpp	2013-02-27 00:22:43 UTC (rev 21663)
@@ -182,7 +182,7 @@
   environ.insert("LOGNAME",saveUsername); //Login name
   environ.insert("USERNAME",saveUsername); // Username
   environ.insert("PATH",environ.value("PATH")+":"+homeDir+"/bin"); // Append the user's home dir to the path
-  if(langCode != "C"){ langCode.append("."+environ.value("MM_CHARSET")); }
+  if( !environ.value("MM_CHARSET").isEmpty() ){ langCode.append("."+environ.value("MM_CHARSET")); }
   environ.insert("LANG",langCode); //Set the proper localized language
   environ.insert("MAIL","/var/mail/"+saveUsername); //Set the mail variable
   environ.insert("GROUP",saveUsername); //Set the proper group id



More information about the Commits mailing list