# New Ticket Created by  Patrick Abi Salloum 
# Please include the string:  [perl #88674]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=88674 >


On windows 7 and vista using "\n" does not produce  \r\n

The following

my $file = open('foo.txt', :w);
$file.say("a\nb");
$file.close;

produces a file containing the bytes

61 0a 62 0a

The expected bytes are

61 0d 0a 62 0d 0a

A current work around is to use

$file.print("a\r\nb\r\n");

Reply via email to