not well support chinese os
smartsl opened this issue · comments
only get d_type(0) and d_name('?') with chinese file names.
i changed readdir to _wreaddir, which fixed it.
Could you please provide a zip or tar package with some chinese file names to aid further development? The files may be empty, only the file names matter.
I think any UNICODE character can be a problem, not only Chinese.
This is an example: "测试"(which means "test" in Chinese).
I got it done by using _wreaddir and other wchar_t functions, which should be emphasized in docs.
It should have worked with plain chars too. Dirent ought to switch to traditional 8+3 file names if it cannot convert a unicode file name to current code page.
Can you confirm with dir /x command that the files do have traditional 8+3 file names?