Let rt_loadLibrary convert codepage UTF-8 to ANSI.
text/plain
1419
Comments
Comment #0 by zan77137 — 2010-09-03T02:39:21Z
Created attachment 744
Let rt_loadLibrary convert codepage UTF-8 to ANSI.
Runtime.loadLibrary should be able to load dll using MBS paths.
LoadLibraryA takes LPCSTR (ANSI string, e.g. Shift_JIS), but rt_loadLibrary
sets char[] (UTF-8 string) now.
Charset must be converted.
I wrote patch.
The patch let rt_loadLibrary convert charset UTF-8 to ANSI by using
WideCharToMultiByte and MultiByteToWideChar.
Comment #1 by github-bugzilla — 2012-09-02T08:19:19Z