|
I second that. I suspect most of those of us who use Lua on Windows either patch their IO library or maintain an alternative version of it because of that. LFS has the same issue, by the way.On Wed, Oct 25, 2017, at 17:00, 云风 Cloud Wu wrote:lua use fopen() in its base lib now, there are too troubles to support windows file system because of it :(I suggest lua use unicode version api of windows in future version, such as fopen -> _wfopen , and call MultiByteToWideChar to convert utf-8 filename to wchar_t first.I think let following apis support utf-8 filename in windows would be better:loadfiledofilerequireio.openos.removeos.renameos.executeos.getenv