log bin/unicode @ 4516:7efc6d484fe6

age author description
Fri, 07 Mar 2014 11:04:58 +0000 HackBot <fizzie> sed -i -e \'s/, c/, c, re.I/\' bin/unicode
Fri, 07 Mar 2014 11:03:21 +0000 HackBot <fizzie> sed -i -e \'s/import sys/import re\\nimport sys/\' -e \'s/map(unicodedata.lookup/map(l/\' -e \'s/try:/def l(c): m = re.match(\'\\\'\'(?:U+)?([0-9a-f]{4})$\'\\\'\', c); return unicodedata.lookup(c) if m is None else unichr(int(m.group(1),16))\\ntry:/\' bin/unicode
Fri, 11 Oct 2013 15:25:39 +0000 HackBot <boily> echo -e "#!/usr/bin/env python\\n# -*- encoding: utf-8 -*-\\nimport sys\\nimport unicodedata\\ntry:\\n print u\'\'.join(map(unicodedata.lookup, sys.argv[1:])).encode(\'utf-8\')\\nexcept KeyError:\\n print u\'Unknown character.\'" >bin/unicode