https://issues.dlang.org/show_bug.cgi?id=15178
Issue ID: 15178
Summary: "Try D" widget on homepage mangles Unicode
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: normal
Priority: P1
Component: dlang.org
Assignee: [email protected]
Reporter: [email protected]
If I run this sample on the websites "Try D" widget:
// Sort lines
import std.stdio;
import std.array;
import std.algorithm;
void main()
{
stdin
.byLine(KeepTerminator.yes)
.map!(a => a.idup)
.array
.sort
.copy(stdout.lockingTextWriter());
}
with this data:
fish
こんにちは
学生
Pūkeko
salami
Tent
Patrick
Python
I get the following:
P\u016bkeko
Patrick
Python
Tent
\u3053\u3093\u306b\u3061\u306f
\u5b66\u751f
fish
salami
--