May 08, 2023
https://issues.dlang.org/show_bug.cgi?id=23906

          Issue ID: 23906
           Summary: Unicode file names are not properly handled
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: alphaglosined@gmail.com

Unicode file names for D source code are apparently not handled correctly.

This was reported by a non-Latin user. https://forum.dlang.org/post/jsahkyhjxihitzerkkbi@forum.dlang.org



Proposed steps to fix this:

toWStringz should be converting from CP_UTF8 not CP_ACP (checked, this looks to
be correct).
https://github.com/dlang/dmd/blob/be151e6d854c0df8af7ee88b6f380b6283ea824f/compiler/src/dmd/common/string.d#L136



I will counterpropose this proposal in suggesting the conversion of CreateProcessA to instead be CreateProcessW with the help of toWStringZ.

https://github.com/dlang/dmd/blob/master/compiler/src/dmd/link.d#L892

--