mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-02 01:08:20 +00:00
unicode_to_argv == id on win32
This commit is contained in:
parent
183ee10035
commit
e3a805caa7
@ -129,10 +129,12 @@ def unicode_to_argv(s, mangle=False):
|
|||||||
"""
|
"""
|
||||||
Make the given unicode string suitable for use in an argv list.
|
Make the given unicode string suitable for use in an argv list.
|
||||||
|
|
||||||
On Python 2, this encodes using UTF-8. On Python 3, this returns the
|
On Python 2 on POSIX, this encodes using UTF-8. On Python 3 and on
|
||||||
input unmodified.
|
Windows, this returns the input unmodified.
|
||||||
"""
|
"""
|
||||||
precondition(isinstance(s, unicode), s)
|
precondition(isinstance(s, unicode), s)
|
||||||
|
if sys.platform == "win32":
|
||||||
|
return s
|
||||||
return ensure_str(s)
|
return ensure_str(s)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user