www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4793] New: Runtime.loadLibrary cannot load dll using MBS paths.

reply d-bugmail puremagic.com writes:
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 invisibleduck.org
        ReportedBy: zan77137 nifty.com


--- Comment #0 from SHOO <zan77137 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: -------
Sep 03 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4793



--- Comment #1 from github-bugzilla puremagic.com 2012-09-02 08:19:19 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/1490b7f294cdb1f20bd538f7f491ec633302dc85
Issue 4793 - Runtime.loadLibrary cannot load dll using MBS paths.

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

https://github.com/D-Programming-Language/druntime/commit/0f452c4c2d1a1fee5b1ccec46a8970a05224985e
Merge pull request #96 from shoo/fix4793

Issue 4793 - Runtime.loadLibrary cannot load dll using MBS paths.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 02 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4793


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 05 2013