Strange behavior in console with UTF-8

Jonathan Villa via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Mar 28 16:48:56 PDT 2016


On Monday, 28 March 2016 at 18:28:33 UTC, Steven Schveighoffer 
wrote:
> On 3/27/16 12:04 PM, Jonathan Villa wrote:
>
> I can reproduce your issue on windows.
>
> It works on Mac OS X.
>
> I see different behavior on 32-bit (DMC stdlib) vs. 64-bit 
> (MSVC stdlib). On both, the line is not read properly (I get a 
> length of 0). On 32-bit, the program exits immediately, 
> indicating it cannot read any more data.
>
> On 64-bit, the program continues to allow input.
>
> I don't think this is normal behavior, and should be filed as a 
> bug. I'm not a Windows developer normally, but I would guess 
> this is an issue with the Windows flavors of readln.
>
> Please file here: https://issues.dlang.org under the Phobos 
> component.
>
> -Steve

Ok, I'm gonna register it with your data. Thanks.

JV.


More information about the Digitalmars-d-learn mailing list