[Issue 391] New: .sort and .reverse break utf8 encoding

Thomas Kuehne thomas-dloop at kuehne.cn
Tue Oct 3 23:37:02 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-10-02:
> http://d.puremagic.com/issues/show_bug.cgi?id=391

> import std.utf;
> import std.stdio;
> void main()
> {
>     char[] a;
>     a = "\u3026\u2021\u3061\n";
>     writefln("plain");    validate(a);
>     writefln("sorted");   validate(a.sort);  // fails
>     writefln("reversed"); validate(a.reverse); // fails
> }

Added to DStress as
http://dstress.kuehne.cn/run/r/reverse_08_A.d
http://dstress.kuehne.cn/run/r/reverse_08_B.d
http://dstress.kuehne.cn/run/r/reverse_08_C.d
http://dstress.kuehne.cn/run/s/sort_16_A.d
http://dstress.kuehne.cn/run/s/sort_16_B.d
http://dstress.kuehne.cn/run/s/sort_16_C.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFI033LK5blCcjpWoRAgxQAJ4soetJ+LZHkmwiFl5YqkGdrjmOjACeI2GG
wkC8F4+qfNmVEbLeUT0t06g=
=HqWF
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list