summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-09-26 17:06:45 +0200
committermakefu <github@syntax-fehler.de>2011-09-26 17:06:45 +0200
commit1ca5b6d9500ee081e5797138e6194a06d159a8f0 (patch)
tree17e6f4949610c1b6b6b2b69ef00f2bd4620e1275 /crypto
parent14636218a1ca18cf66c507d39c6784a6b28f7528 (diff)
ukrepl: fix +space bug
the python 'print' is retarded and always adds a space to a given character if newline is suppressed, using sys.stdout.write instead
Diffstat (limited to 'crypto')
-rwxr-xr-xcrypto/bin/ukrepl7
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/bin/ukrepl b/crypto/bin/ukrepl
index b3b25db9..2dfaabc4 100755
--- a/crypto/bin/ukrepl
+++ b/crypto/bin/ukrepl
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# -*- coding: utf-8 -*-
import sys
@@ -98,4 +98,7 @@ for line in sys.stdin:
else:
print "unknown mode %c" % mode
helpme()
- print char,
+ try:
+ sys.stdout.write(char)
+ except:
+ sys.stdout.write(char.encode("utf-8"))