cli: decode all cli arguments, assuming that they are utf-8 encoded
authorZooko O'Whielacronx <zooko@zooko.com>
Tue, 23 Dec 2008 00:54:53 +0000 (17:54 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Tue, 23 Dec 2008 00:54:53 +0000 (17:54 -0700)
commit36df38e58b4042bc38af7d4df69c73ff83ce2f4a
tree408b9daad0c712802dc0ecdb9e6ee01d8f288623
parentce5effbedfc19d5acd4aacf66e770f27ab1ad620
cli: decode all cli arguments, assuming that they are utf-8 encoded
Also encode all args to urllib as utf-8 because urllib doesn't handle unicode objects.
I'm not sure if it is appropriate to *assume* utf-8 encoding of cli args.  Perhaps the Right thing to do is to detect the platform encoding.  Any ideas?
This patch is mostly due to François Deppierraz.
src/allmydata/scripts/common.py
src/allmydata/scripts/runner.py