[Issue 12848] New: crash in _d_run_main() on some unicode command line argument (Win32)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jun 3 16:24:56 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12848

          Issue ID: 12848
           Summary: crash in _d_run_main() on some unicode command line
                    argument (Win32)
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: mk at krej.cz

I get a crash in Druntime in _d_run_main() function when I supply a command
line argument like 'ěě' (several same accented characters).

This is on Windows (XP 32bit), dmd 2.065.

The crash or exception occurs in alloca function here:
https://github.com/D-Programming-Language/druntime/blob/2.065/src/rt/dmain2.d#L345

Console codepage settings (chcp 852 or 65001) doesn't matter;

Program source code doesn't matter, empty main() is enough. I know there are
problems with Unicode support in Windows console, but this needs some
workaround.

--


More information about the Digitalmars-d-bugs mailing list