Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.os.linux.embedded Subject: Re: When 0x0d become 0x0a Date: Mon, 14 Apr 2014 16:46:50 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 25 Message-ID: References: NNTP-Posting-Host: dsl.comtrol.com X-Trace: reader1.panix.com 1397494010 320 64.122.56.22 (14 Apr 2014 16:46:50 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Mon, 14 Apr 2014 16:46:50 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.os.linux.embedded:661 On 2014-04-12, Les Cargill wrote: > Grant Edwards wrote: >> On 2014-02-15, Les Cargill wrote: >> >>> I said this because there is a bit you can OR into the last argument >>> to open() that causes the LF/CR translation to stop. I can't use >>> that. >> >> Huh? Can you point to code or documentation for that? >> > > http://gd.tuwien.ac.at/languages/c/programming-bbrown/c_075.htm > > This may be a local heresy specific to the system I am using. To > be sure, this system's the first one I'd seen that does > this. After a bit of Googling it appears it might be a Microsoftism. Google also finds discussion of adding O_TEXT and O_BINARY flags to cygwin. I don't know if it happened... -- Grant Edwards grant.b.edwards Yow! LBJ, LBJ, how many at JOKES did you tell today??! gmail.com