http://d.puremagic.com/issues/show_bug.cgi?id=4793

           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
        AssignedTo: s...@invisibleduck.org
        ReportedBy: zan77...@nifty.com


--- Comment #0 from SHOO <zan77...@nifty.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to