diff options
Diffstat (limited to 'crypto/bin/ukrepl')
-rwxr-xr-x | crypto/bin/ukrepl | 7 |
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")) |