diff bin/loudly @ 6489:e112f5e79a7a

<oerjan> revert 6486
author HackBot
date Sun, 03 Jan 2016 00:38:30 +0000
parents 5f592a885f04
children 6eacacd165b3
line wrap: on
line diff
--- a/bin/loudly	Sun Jan 03 00:36:53 2016 +0000
+++ b/bin/loudly	Sun Jan 03 00:38:30 2016 +0000
@@ -2,4 +2,4 @@
 import sys, itertools
 inp = len(sys.argv) >= 2 and sys.argv[1] or raw_input()
 cyc = itertools.cycle(["\00304,09","\00309,04"])
-print "".join(cyc.next() + c for c in inp)
+print "".join(cyc.next() + c for c in unicode(inp, locale.nl_langinfo(locale.CODESET))).encode(locale.nl_langinfo(locale.CODESET))