view bin/unidecode @ 5459:12e3ce70ec23

<oren> le/rn tar/The command you\'re looking for is probably either tar -xavkf or tar -cavf
author HackBot
date Sun, 07 Jun 2015 06:10:00 +0000
parents 940c1732e450
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("multicode", ["multicode"] + sys.argv[1:])
else:
  print s