Should you be able to initialize a float with a char?

deadalnix deadalnix at gmail.com
Thu May 19 23:26:57 UTC 2022


On Thursday, 19 May 2022 at 22:51:55 UTC, kdevel wrote:
> On Thursday, 19 May 2022 at 22:24:35 UTC, deadalnix wrote:
>> On Thursday, 19 May 2022 at 22:14:31 UTC, kdevel wrote:
>>> Free of charge I compiled and ran this for you:
>>>
>>>    $ dmd lcb
>>>    $ ./lcb
>>>    input            : A Ä
>>>    bright           : a Ä
>>>    toLower (std.utf): a ä
>>>    input            : A Ä
>>>    bright           : a ä
>>>    toLower (std.utf): a ä
>>>
>>> See the problem?
>>
>> You could have use "Ali Çehreli" as a test case :)
>
> One needs to combine U+0043 LATIN CAPITAL LETTER C + U+0327 
> COMBINING CEDILLA in this case. Further Reading:
>
> [3] 
> https://medium.com/@sthadewald/the-utf-8-hell-of-mac-osx-feef5ea42407

This, or simply U+00E7 .

Which will cause a similar problem as the one you raised.


More information about the Digitalmars-d mailing list