Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.embedded > #663
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.os.linux.embedded |
| Subject | Re: When 0x0d become 0x0a |
| Date | 2014-04-14 18:56 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <lihb0q$cf4$1@reader1.panix.com> (permalink) |
| References | (2 earlier) <ldmm5q$2gq$1@dont-email.me> <ldmqij$qeb$1@reader1.panix.com> <licbbb$vjm$1@dont-email.me> <lih3dq$a0$1@reader1.panix.com> <lih6ni$o39$1@dont-email.me> |
On 2014-04-14, Les Cargill <lcargill99@comcast.com> wrote:
> Grant Edwards wrote:
>> On 2014-04-12, Les Cargill <lcargill99@comcast.com> wrote:
>>> 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?
>>>>
>>>
>>> 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.
>
> Definitively. I just suspect it may have bled over into nominally
> Linux systems.
>
> All goes back to "raw" and "cooked" mode in DOS, which originated
> there, SFAIK.
No, raw and cooked mode is a Unix thing and predates DOS by a long
time. On Unix, tty devices (like serial ports) can be in raw or
canonical (AKA "cooked") mode. When in cooked mode, you can enable
things like conversion of cr->lf or vice versa, mapping
lowercase->uppercase, handling various control characters, xon/xoff
flow control, and so on.
--
Grant Edwards grant.b.edwards Yow! Do you think the
at "Monkees" should get gas on
gmail.com odd or even days?
Back to comp.os.linux.embedded | Previous | Next — Previous in thread | Next in thread | Find similar
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