# HG changeset patch # User HackBot # Date 1451781175 0 # Node ID f76b9b5bd9857c7c54e752a5e1897169dc2fd655 # Parent 908cf0b01830eebd1f02f38a692c03b9b0556848 ` sed -ie \'s/inp[)]$/unicode(inp, locale.nl_langinfo(locale.CODESET))).encode(locale.nl_langinfo(locale.CODESET))/\' bin/loudly diff -r 908cf0b01830 -r f76b9b5bd985 bin/loudly --- a/bin/loudly Sat Jan 02 17:18:31 2016 +0000 +++ b/bin/loudly Sun Jan 03 00:32:55 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)) diff -r 908cf0b01830 -r f76b9b5bd985 bin/loudlye --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/loudlye Sun Jan 03 00:32:55 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)