[Issue 8600] "writeln" one parameter garbled

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


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

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)
{
   writeln("1个");
   return 0;
}
----

--


More information about the Digitalmars-d-bugs mailing list