www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11232] New: Windows sysErrorString only supports ASCII

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11232

           Summary: Windows sysErrorString only supports ASCII
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: jakobovrum gmail.com



---
`std.windows.syserror.sysErrorString` uses `FormatMessageA` when it should be
using `FormatMessageW`. This results in the infamous question marks when the
text is in a non-English language; for some combinations of language and error
message, the entire text is composed of nothing but question marks.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 12 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11232




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/b97b4e96202ba7fec103ece3993f3b8e86faf7d3
fix issue 11232 - rewritten std.windows.syserror.sysErrorString

Fixed for Unicode-correctness; now works on non-English Windows systems.
Added unit test.
Throws an Exception if the given error code or language combination
was invalid.

https://github.com/D-Programming-Language/phobos/commit/a2fea332ed7f86130942487614152aa3ed91f1c4


fix issue 11232 - rewritten std.windows.syserror.sysErrorString

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 15 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11232


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: -------
Oct 15 2013