[Issue 8600] "writeln" one parameter garbled

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 13 10:49:31 UTC 2021


ag0aep6g <ag0aep6g at gmail.com> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
                 CC|                            |ag0aep6g at gmail.com
         Resolution|INVALID                     |---

--- Comment #3 from ag0aep6g <ag0aep6g at gmail.com> ---
(In reply to Berni44 from comment #2)
> I'm closing this, because it's unclear, what the bug is and the report is
> old, so it might not even be there anymore. Please feel free to reopen it,
> if you think, the bug still persists.

Reopening. The code is just missing some imports. Fixed test case:

import core.stdc.wchar_, core.stdc.locale;
static import core.stdc.stdio;
import std.stdio: writeln;

extern(C) int setlocale(int, char*);
static this()
    fwide(core.stdc.stdio.stdout, 1);
    setlocale(0, cast(char*)"china");
int main(string[] argv)
   return 0;


More information about the Digitalmars-d-bugs mailing list