summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-11 22:39:04 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-24 10:26:53 (GMT)
commitd3eda7933efdb7a17b663a962f925680f3c36131 (patch)
tree1990edee2123cd9d7b61d5068bbbb4d2745edae3
parent012cf33e3ea9a16a0cf13879743e985f6f5895c5 (diff)
kajonggtest: correctly pass player name to client
-rwxr-xr-xsrc/kajonggtest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kajonggtest.py b/src/kajonggtest.py
index e667e5d..84bbcf8 100755
--- a/src/kajonggtest.py
+++ b/src/kajonggtest.py
@@ -35,7 +35,7 @@ from tempfile import mkdtemp
from optparse import OptionParser
-from common import Debug, StrMixin, isPython3, interpreterName
+from common import Debug, StrMixin, isPython3, interpreterName, nativeString
from util import removeIfExists, gitHead, checkMemory
from compat import Csv, CsvWriter
@@ -268,7 +268,7 @@ class Job(StrMixin):
'--game={game}'.format(game=self.game),
'--player={tester} {player}'.format(
player=player,
- tester=u'Tüster'.encode('utf-8')),
+ tester=nativeString(u'Tüster')),
'--ruleset={ap}'.format(ap=self.ruleset)]
if self.server.socketName:
cmd.append('--socket={sock}'.format(sock=self.server.socketName))