Antonio Scuri <antonio.sc...@gmail.com>于2018年9月12日周三 下午5:43写道:
> I don't think is that simple. > > The right Unicode support would have wchar* instead of char* in all > function calls, and specially in the Lua binding. We don't need to change > the current API, but at least we should have to add new functions where > there is string as a parameter to correctly support Unicode. > > That's why I like UTF-8, so we can keep the same API, and change things > only at the system function call. > > > I mean we can support UTF-8 only for filename, and in windows, converting filename from utf-8 to UCS2 and then call _wfopen . The wrapper function of fopen is the same with original fopen (receive const char * filename, const char *mode) .
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users