]> gitweb.pimeys.fr Git - today.git/commitdiff
User input : Unicode again
authorVincent Le Gallic <legallic@crans.org>
Mon, 14 Oct 2013 12:14:56 +0000 (14:14 +0200)
committerVincent Le Gallic <legallic@crans.org>
Mon, 14 Oct 2013 12:14:56 +0000 (14:14 +0200)
today.py

index e430fd881a3030ab8768ced77b3ca24f4ae4366d..26c3e2bdaf4b6f827c72fde823e74ae0727cf05f 100755 (executable)
--- a/today.py
+++ b/today.py
@@ -450,7 +450,7 @@ if __name__ == "__main__":
         output = ACTIONS[None]()
     else:
         commande = sys.argv[1]
-        args = sys.argv[2:]
+        args = [s.decode("utf-8") for s in sys.argv[2:]]
         output = ACTIONS[commande](*args)
     if output:
         print output.encode("utf-8")