[tor-bugs] #10416 [Tor]: Tor won't start on Windows when path contains non-ascii characters
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Dec 19 12:01:57 UTC 2013
#10416: Tor won't start on Windows when path contains non-ascii characters
----------------------------+------------------------------
Reporter: iktsuarpok | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor | Version: Tor: 0.2.3.25
Resolution: | Keywords: windows, unicode
Actual Points: | Parent ID:
Points: |
----------------------------+------------------------------
Comment (by cypherpunks):
> Hm. If we can do this by just handling unicode command-line arguments
(s/main/wmain/), this won't be hard. If we need to change every place that
we touch the file system or manipulate a path, that will be a bit harder.
If legacy program could to set UTF-8 code page to use by legacy functions
that would solve all problems without any changes, but no such method
documented and Microsoft want to drop code pages support someday in every
piece of shipped code.
Windows native way is to use "wide" functions with "wide" chars to store
stuff. More simpler solution for less changes is to convert UTF-16
arguments to UTF-8 and convert back only for windows UTF-16 funcs, but it
would to break output and logs.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10416#comment:14>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list