Name |
Last commit
|
Last update |
---|---|---|
.. | ||
dir.c | ||
dir.h | ||
git2.rc | ||
map.c | ||
mingw-compat.h | ||
msvc-compat.h | ||
posix.h | ||
posix_w32.c | ||
pthread.c | ||
pthread.h | ||
utf-conv.c | ||
utf-conv.h |
The function to convert UTF-16 to UTF-8 was only allocating a buffer of wcslen(utf16str) bytes for the UTF-8 string, but that is not sufficient if you have multibyte characters, and so when those occured, the conversion was failing. This updates the conversion functions to use the Win APIs to calculate the correct buffer lengths. Also fixes a comparison in the unit tests that would fail if you did not have a particular environment variable set.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
dir.c | Loading commit data... | |
dir.h | Loading commit data... | |
git2.rc | Loading commit data... | |
map.c | Loading commit data... | |
mingw-compat.h | Loading commit data... | |
msvc-compat.h | Loading commit data... | |
posix.h | Loading commit data... | |
posix_w32.c | Loading commit data... | |
pthread.c | Loading commit data... | |
pthread.h | Loading commit data... | |
utf-conv.c | Loading commit data... | |
utf-conv.h | Loading commit data... |