mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
371d10ca4d
Summary: In Python 3 the strings are no longer bytes, so we need to convert them before calling Windows native APIs. I originally attempted to make all C APIs use the W() Windows APIs. This sorta worked and enabled some unicode support for Windows in Python 2, like hg status, but it meant that utf-8 path encodings were being returned and eventually passed to python functions like os.lstat() which weren't expecting utf8 encoding. I gave up and just left the Python 2 C code as is, and made a copy that uses W() APIs for Python 3. This enables unicode support on Windows where it didn't work before (at least in my testing). Reviewed By: quark-zju Differential Revision: D26381053 fbshipit-source-id: 69d4e18ba9fb0f3d17bad58fbcc5d0e6e61d4252 |
||
---|---|---|
.. | ||
fs | ||
integration | ||
locale | ||
mononoke | ||
scm | ||
test_support | ||
test-data | ||
.gitignore | ||
Eden.project.toml |