www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12848] New: crash in _d_run_main() on some unicode command


          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 puremagic.com
          Reporter: mk 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:

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

Jun 03 2014