Until now, paths on Windows were converted from UTF-8 to UCS-2 instead of being converted to UTF-16. This pull request fixes issues with file paths that use 2 wchar_t characters / 4 bytes, also called surrogate pairs. These are allowed in UTF-16 but not in UCS-2. I also modified the unit tests to test this case.
Until now, paths on Windows were converted from UTF-8 to UCS-2 instead of being converted to UTF-16. This pull request fixes issues with file paths that use 2 wchar_t characters / 4 bytes, also called surrogate pairs. These are allowed in UTF-16 but not in UCS-2. I also modified the unit tests to test this case.