Affects Version/s: None
Fix Version/s: None
We should switch from the ANSI to the wide character API on Windows. The benefits are:
- Support for Unicode filenames.
- Support for long path names.
The required steps are:
- Implement a method to convert UTF-8 strings to UTF-16. Maybe something like ByteBuf *utf16 = CB_to_utf16(string);
- Switch from the 'A' to the 'W' functions of the Windows API, for example CreateFileW. (The 'A' functions are called implicitly now.)