Escape codes are not 100% portable

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 2 04:13:21 PDT 2015


On Thu, 02 Apr 2015 11:04:06 +0000, Jens Bauer wrote:

> -The problem is that on some hosts,
> \r gives you the character code 13, while \n gives you the character
> code 10,
> on other hosts,
> \r gives you the character code 10, while \n gives you the character
> code 13.

any compiler that does the second is broken and should be fixed. DMD is 
not broken.
-------------- 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/8e928326/attachment.sig>


More information about the Digitalmars-d mailing list