Mercurial > repo
changeset 3901:b538b5f005ab
<fizzie> printf \'%s\\n\' \'#!/usr/bin/env python\' \'import sys\' \'import unicodedata\' \'print 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")\' > bin/unidecode
author | HackBot |
---|---|
date | Fri, 11 Oct 2013 13:57:34 +0000 |
parents | b1b0dcb5ad5e |
children | fefeb07fedf3 |
files | bin/unidecode |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/unidecode Fri Oct 11 13:57:18 2013 +0000 +++ b/bin/unidecode Fri Oct 11 13:57:34 2013 +0000 @@ -1,4 +1,4 @@ #!/usr/bin/env python import sys import unicodedata -print 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") +print 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")