[Issue 14827] New: [REG 2.068] std.string.strip handles Unicode incorrectly with -O -inline
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jul 25 18:24:46 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14827
Issue ID: 14827
Summary: [REG 2.068] std.string.strip handles Unicode
incorrectly with -O -inline
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: gassa at mail.ru
import std.conv, std.range, std.stdio, std.string, std.uni;
void main () {
string s = "Тест";
writeln (s.front); // "T", right
writeln (s.front.isWhite); // false, right
writeln (s.strip); // "Тест" expected, "ест" found
}
2.067.1: OK
2.068.0-b1 and 2.068.0-b2, compiled with "dmd -O -inline -m32": s.strip eats
the first Cyrillic letter. On the other hand, "-m64" version works fine.
--
More information about the Digitalmars-d-bugs
mailing list