[PC-BSD Commits] r5027 - in pbibuild/pbi-source: PBIsource PBItext

svn at pcbsd.org svn at pcbsd.org
Mon Nov 16 11:32:22 PST 2009


Author: kris
Date: 2009-11-16 11:32:22 -0800 (Mon, 16 Nov 2009)
New Revision: 5027

Modified:
   pbibuild/pbi-source/PBIsource/pbi.cpp
   pbibuild/pbi-source/PBItext/main.cpp
Log:

Updated PBI to detect kde4 lang a bit better during program execution in
our wrapper script



Modified: pbibuild/pbi-source/PBIsource/pbi.cpp
===================================================================
--- pbibuild/pbi-source/PBIsource/pbi.cpp	2009-11-16 19:02:29 UTC (rev 5026)
+++ pbibuild/pbi-source/PBIsource/pbi.cpp	2009-11-16 19:32:22 UTC (rev 5027)
@@ -627,7 +627,7 @@
              stream2 << "# Check locale setup\n";
 	     stream2 << "if [ -z \"${LANG}\" ]\n";
 	     stream2 << "then\n";
-	     stream2 << " LANG=\"`grep ^Language= ~/.kde4/share/config/kdeglobals | cut -d '=' -f2`\"\n";
+	     stream2 << " LANG=\"`grep ^Language= ~/.kde4/share/config/kdeglobals | cut -d '=' -f2 | cut -d ':' -f 1`\"\n";
 	     stream2 << " if [ ! -z \"${LANG}\" ]\n";
 	     stream2 << " then\n";
 	     stream2 << "   echo $LANG | grep \"UTF-8\" >/dev/null 2>/dev/null\n";

Modified: pbibuild/pbi-source/PBItext/main.cpp
===================================================================
--- pbibuild/pbi-source/PBItext/main.cpp	2009-11-16 19:02:29 UTC (rev 5026)
+++ pbibuild/pbi-source/PBItext/main.cpp	2009-11-16 19:32:22 UTC (rev 5027)
@@ -604,7 +604,7 @@
              stream2 << "# Check locale setup\n";
 	     stream2 << "if [ -z \"${LANG}\" ]\n";
 	     stream2 << "then\n";
-	     stream2 << " LANG=\"`grep ^Language= ~/.kde4/share/config/kdeglobals | cut -d '=' -f2`\"\n";
+	     stream2 << " LANG=\"`grep ^Language= ~/.kde4/share/config/kdeglobals | cut -d '=' -f2 | cut -d ':' -f 1`\"\n";
 	     stream2 << " if [ ! -z \"${LANG}\" ]\n";
 	     stream2 << " then\n";
 	     stream2 << "   echo $LANG | grep \"UTF-8\" >/dev/null 2>/dev/null\n";



More information about the Commits mailing list