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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from [email protected] ---
An excerpt from <http://unicode.org/Public/UNIDATA/SpecialCasing.txt>:

> # <code>; <lower>; <title>; <upper>; (<condition_list>;)? # <comment>
[...]
> 1FE2; 1FE2; 03A5 0308 0300; 03A5 0308 0300; # GREEK SMALL LETTER UPSILON WITH 
> DIALYTIKA AND VARIA

That means, the correct uppercase of '\u1FE2' is "\u03A5\u0308\u0300". That's
three code points.

`"\u1FE2".toUpper` correctly returns that. `'\u1FE2'.toUpper` must return a
single dchar, so it cannot return the correct string. The documentation of
toUpper mentions this.

--

Reply via email to