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. :-)
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])
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)