changeset 6486:c407448cbf0f

<oerjan> revert
author HackBot
date Sun, 03 Jan 2016 00:35:14 +0000
parents 7a3ae17b7bac
children 9ae470a31c52
files bin/loudly bin/loudlye
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/loudly	Sun Jan 03 00:33:42 2016 +0000
+++ b/bin/loudly	Sun Jan 03 00:35:14 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))
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/loudlye	Sun Jan 03 00:35:14 2016 +0000
@@ -0,0 +1,5 @@
+#!/usr/bin/env python
+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)