Author: remi
Date: 2009-10-01 14:39:26 +0200 (Thu, 01 Oct 2009)
New Revision: 5581
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugin/interpreters/PluginInterpreter.py
Log:
* String are only recoded in ISO-8859-1 on Windows in PIPE transactions.
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugin/interpreters/PluginInterpreter.py
===================================================================
---
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugin/interpreters/PluginInterpreter.py
2009-10-01 12:25:22 UTC (rev 5580)
+++
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/plugin/interpreters/PluginInterpreter.py
2009-10-01 12:39:26 UTC (rev 5581)
@@ -295,11 +295,12 @@
self.__onPluginStartedCallback()
while self.__getRun():
line = self.__process.stdout.readline()
- try:
- tmp = line.decode("latin-1", "ignore")
- line = tmp.encode("utf-8", "ignore")
- except:
- pass
+ if os.name == 'nt':
+ try:
+ tmp = line.decode("latin-1", "ignore")
+ line = tmp.encode("utf-8", "ignore")
+ except:
+ pass
if len(line) == 0:
self.__setRun(False)
if self.__onPluginStoppedCallback != None:
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn