develooper Front page | perl.perl5.porters | Postings from March 2013

[perl #117219] [PATCH] Correct handling of O_BINARY for non-DOSish platforms

Thread Previous
From:
Paul Green
Date:
March 19, 2013 03:48
Subject:
[perl #117219] [PATCH] Correct handling of O_BINARY for non-DOSish platforms
Message ID:
rt-3.6.HEAD-28177-1363664900-362.117219-75-0@perl.org
# New Ticket Created by  Paul Green 
# Please include the string:  [perl #117219]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=117219 >


On a platform in which O_BINARY!=O_TEXT, and which uses LF, not CRLF,
forcing O_BINARY=1 in perlio.c is not appropriate (one such example is
the Stratus VOS platform).

 

Based on when this change was made (in a patch for the Windows
platform), the appropriate fix is to condition the assignment on the
PERLIO_USING_CRLF macro.

 

Thanks

PG

--

Sr. Technical Consultant, Stratus Technologies Inc.

Office: +1-978-461-7557; Mobile: +1-978-235-2451; Twitter: @stratuspaulg

 


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About