We're just going to mark unicode in the cli as unsupported for tahoe-lafs-1.3.0.  Unicode filenames on the command-line do actually work for some platforms and probably only if the platform encoding is utf-8, but I'm not sure, and in any case for it to be marked as "supported" it would have to work on all platforms, be thoroughly tested, and also we would have to understand why it worked.  :-)
This commit is contained in:
Zooko O'Whielacronx 2008-12-24 09:53:17 -07:00
parent 25d962c67d
commit 883e51b02d
2 changed files with 1 additions and 7 deletions

View File

@ -129,4 +129,4 @@ def get_alias(aliases, path, default):
def escape_path(path):
segments = path.split("/")
return "/".join([urllib.quote(s.encode('utf-8')) for s in segments])
return "/".join([urllib.quote(s) for s in segments])

View File

@ -33,12 +33,6 @@ def runner(argv,
stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr,
install_node_control=True, additional_commands=None):
# Convert arguments to unicode
new_argv = []
for arg in argv:
new_argv.append(arg.decode('utf-8'))
argv = new_argv
config = Options()
if install_node_control:
config.subCommands.extend(startstop_node.subCommands)