[Issue 4793] New: Runtime.loadLibrary cannot load dll using MBS paths.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 3 02:39:40 PDT 2010


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: sean at invisibleduck.org
        ReportedBy: zan77137 at nifty.com


--- Comment #0 from SHOO <zan77137 at 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: -------


More information about the Digitalmars-d-bugs mailing list