Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.embedded > #660

Re: When 0x0d become 0x0a

Path csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Les Cargill <lcargill99@comcast.com>
Newsgroups comp.os.linux.embedded
Subject Re: When 0x0d become 0x0a
Date Sat, 12 Apr 2014 16:40:01 -0500
Organization A noiseless patient Spider
Lines 32
Message-ID <licbi1$1bc$1@dont-email.me> (permalink)
References <ldjodp$m47$1@dont-email.me> <ldk4ni$hi3$1@reader1.panix.com> <ldmm5q$2gq$1@dont-email.me> <ldmqij$qeb$1@reader1.panix.com> <li7elg$ctf$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Sat, 12 Apr 2014 21:34:57 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="0d6067635a6631d8f602a011f31e5f3a"; logging-data="1388"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++kaBkLTNarveF7Jb7rt4K+gylTYR7zhQ="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 SeaMonkey/2.25
In-Reply-To <li7elg$ctf$1@dont-email.me>
Cancel-Lock sha1:fX5wD/xiB578IXXUga8aiPzxIrU=
Xref csiph.com comp.os.linux.embedded:660

Show key headers only | View raw


Przemek Klosowski wrote:
> On Sat, 15 Feb 2014 04:31:16 +0000, Grant Edwards wrote:
>
>> On 2014-02-15, Les Cargill <lcargill99@comcast.com> 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?
>>
>> I've been using serial ports on Linux for 20 years, I've written
>> multiple tty and serial drivers for Linux, and I've spent a lot of time
>> in general wandering around the the Linux serial subsystem.  I've never
>> heard of such a thing before.
>
> Is it possible that Les remembers the Windows I/O routines which did
> indeed have a binary/ascii option that handled line endings?
>


That would certainly explain it, although this happens to be on 
something identified as Linux. I'll try to clear this up later.

It may be that the library in play ( this is a Tiny Linux ) mixes
_fmode and open() semantics.

Text vs.binary mode is a non-sequitur when it comes to Linux.



-- 
Les Cargill

Back to comp.os.linux.embedded | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

When 0x0d become 0x0a Les Cargill <lcargill99@comcast.com> - 2014-02-13 18:39 -0600
  Re: When 0x0d become 0x0a Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2014-02-13 20:49 -0500
    Re: When 0x0d become 0x0a Les Cargill <lcargill99@comcast.com> - 2014-02-14 00:27 -0600
  Re: When 0x0d become 0x0a Grant Edwards <invalid@invalid.invalid> - 2014-02-14 04:06 +0000
    Re: When 0x0d become 0x0a Les Cargill <lcargill99@comcast.com> - 2014-02-14 21:19 -0600
      Re: When 0x0d become 0x0a Grant Edwards <invalid@invalid.invalid> - 2014-02-15 04:31 +0000
        Re: When 0x0d become 0x0a Przemek Klosowski <przemek@tux.dot.org> - 2014-04-11 00:57 +0000
          Re: When 0x0d become 0x0a Les Cargill <lcargill99@comcast.com> - 2014-04-12 16:40 -0500
        Re: When 0x0d become 0x0a Les Cargill <lcargill99@comcast.com> - 2014-04-12 16:36 -0500
          Re: When 0x0d become 0x0a Grant Edwards <invalid@invalid.invalid> - 2014-04-14 16:46 +0000
            Re: When 0x0d become 0x0a Les Cargill <lcargill99@comcast.com> - 2014-04-14 12:48 -0500
              Re: When 0x0d become 0x0a Grant Edwards <invalid@invalid.invalid> - 2014-04-14 18:56 +0000
                Re: When 0x0d become 0x0a Les Cargill <lcargill99@comcast.com> - 2014-04-14 20:16 -0500
                Re: When 0x0d become 0x0a Grant Edwards <invalid@invalid.invalid> - 2014-04-15 15:15 +0000
  Re: When 0x0d become 0x0a David <no@spam.please> - 2014-02-14 13:13 +0000

csiph-web