Mercurial > repo
view bin/unidecode @ 12229:9e87b11251e2 draft
<oerjan> le/rn scowrevs///hackenv/share/scowrevs is a list of repository revision ranges that affected a lot of files but in the end changed nothing (usually because of a revert at the end). Most of our custom repository lookup commands ignore these to reduce noise.
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Wed, 04 Dec 2019 06:18:32 +0000 |
parents | c3351169a617 |
children |
line wrap: on
line source
#!/usr/bin/env python import os, sys import unicodedata s = u" ".join("[U+{0:04X} {1}]".format(ord(c), unicodedata.name(c, "DUNNO")) for c in " ".join(sys.argv[1:]).decode("utf-8")).encode("utf-8") if u"DUNNO" in s: os.execvp("singlecode", ["singlecode"] + sys.argv[1:]) else: print s