Escape codes are not 100% portable

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 2 06:22:58 PDT 2015


On Thu, 02 Apr 2015 13:12:13 +0000, Jens Bauer wrote:

> On Thursday, 2 April 2015 at 11:55:09 UTC, ketmar wrote:
>> so your suggestion actually *introduces* the bug in DMD.
> 
> Nope, not if implemented correctly.

currently it's implemented correctly.

> 0x0a should be handled, 0x0d should be handled and 0x0d0a should be
> handled.

for what reason? as you wrote, that platform is not ASCII-compatible, so 
text files need to be converted from ASCII to host encoding.

> Flles received from a DOS or DOS-like system would then have incorrect
> line numbers reported.

'cause they aren't in host encoding.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150402/fb3ab53f/attachment-0001.sig>


More information about the Digitalmars-d mailing list