Summary: Runtime.loadLibrary cannot load dll using MBS paths.
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime

--- Comment #0 from SHOO <> 2010-09-03 02:39:21 PDT ---
Created an attachment (id=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.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to