[gnue] r9699 - trunk/gnue-common/src/apps

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2007-06-11 06:50:14 -0500 (Mon, 11 Jun 2007)
New Revision: 9699

Modified:
   trunk/gnue-common/src/apps/GBaseApp.py
Log:
Convert command line parameters to unicode.


Modified: trunk/gnue-common/src/apps/GBaseApp.py
===================================================================
--- trunk/gnue-common/src/apps/GBaseApp.py	2007-06-10 23:10:55 UTC (rev 9698)
+++ trunk/gnue-common/src/apps/GBaseApp.py	2007-06-11 11:50:14 UTC (rev 9699)
@@ -35,6 +35,7 @@
 import ConfigParser
 import gc
 import signal
+import locale
 
 from gnue import paths
 
@@ -647,7 +648,7 @@
     """
 
     parameters = {}
-    for param in paramList:
+    for param in [unicode(p, locale.getpreferredencoding()) for p in paramList]:
       psplit = param.split('=', 1)
       if len (psplit) == 1:
         raise StartupError, \
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.