Thread overview
[Issue 8600] "writeln" one parameter garbled
Feb 20, 2021
Berni44
Apr 12, 2021
Berni44
Apr 13, 2021
ag0aep6g
Apr 13, 2021
Berni44
Dec 17, 2022
Iain Buclaw
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=8600

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |D2

--
October 15, 2016
https://issues.dlang.org/show_bug.cgi?id=8600

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bootcamp
                 CC|                            |andrei@erdani.com

--
February 20, 2021
https://issues.dlang.org/show_bug.cgi?id=8600

Berni44 <bugzilla@bernis-buecher.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@bernis-buecher.de

--- Comment #1 from Berni44 <bugzilla@bernis-buecher.de> ---
I get:

test.d(6): Error: undefined identifier stdio in package core.stdc, perhaps add static import core.stdc.stdio;

making the import static, like suggested yields:

test.d(6): Error: undefined identifier fwide

A working example (or a description what fails) would be nice...

--
April 12, 2021
https://issues.dlang.org/show_bug.cgi?id=8600

Berni44 <bugzilla@bernis-buecher.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Berni44 <bugzilla@bernis-buecher.de> ---
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.

--
April 13, 2021
https://issues.dlang.org/show_bug.cgi?id=8600

ag0aep6g <ag0aep6g@gmail.com> changed:

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

--- Comment #3 from ag0aep6g <ag0aep6g@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;
}
----

--
April 13, 2021
https://issues.dlang.org/show_bug.cgi?id=8600

--- Comment #4 from Berni44 <bugzilla@bernis-buecher.de> ---
Thanks. That makes more sense. I guess the expected output should be "1个" instead of "1?,?"?

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=8600

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--