public inbox for ecos-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug 1001477] New: TERMIOS does not completely respect OPOST
@ 2012-02-08 14:53 bugzilla-daemon
2012-02-08 15:00 ` [Bug 1001477] " bugzilla-daemon
0 siblings, 1 reply; 3+ messages in thread
From: bugzilla-daemon @ 2012-02-08 14:53 UTC (permalink / raw)
To: ecos-bugs
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001477
Summary: TERMIOS does not completely respect OPOST
Product: eCos
Version: 3.0
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: low
Component: Serial
AssignedTo: unassigned@bugs.ecos.sourceware.org
ReportedBy: adam.gregory@roke.co.uk
CC: ecos-bugs@ecos.sourceware.org
Class: Advice Request
Hi,
As far as I can tell, in termios, if the OPOST bit of c_oflag is not set, then
termios shouldn't wrangle the output characters regardless of the other flags.
However in ecos 3.0, io/serial/v3_0/src/common/termiostty.c line 612 reads:
if ( (*buf == '\n') && (priv->termios.c_oflag & (OPOST|ONLCR)) ) {
Should this be (OPOST&ONLCR)?
This tripped me up quite badly trying to use a binary UART interface to an
external device using code originally written for UNIX that just cleared OPOST.
ONLCR seems to be set by default.
Apologies if this has already been fixed in CVS.
Regards,
Adam
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug 1001477] TERMIOS does not completely respect OPOST
2012-02-08 14:53 [Bug 1001477] New: TERMIOS does not completely respect OPOST bugzilla-daemon
@ 2012-02-08 15:00 ` bugzilla-daemon
0 siblings, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2012-02-08 15:00 UTC (permalink / raw)
To: ecos-bugs
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001477
--- Comment #1 from Adam Gregory <adam.gregory@roke.co.uk> 2012-02-08 15:00:25 GMT ---
Sorry, I meant I think the condition should be:
if ( (*buf == '\n') && ((priv->termios.c_oflag & (OPOST|ONLCR)) ==
(OPOST|ONLCR)) )
Cheers,
Adam
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug 1001477] New: TERMIOS does not completely respect OPOST
@ 2012-02-08 14:53 bugzilla-daemon
0 siblings, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2012-02-08 14:53 UTC (permalink / raw)
To: unassigned
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001477
Summary: TERMIOS does not completely respect OPOST
Product: eCos
Version: 3.0
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: low
Component: Serial
AssignedTo: unassigned@bugs.ecos.sourceware.org
ReportedBy: adam.gregory@roke.co.uk
CC: ecos-bugs@ecos.sourceware.org
Class: Advice Request
Hi,
As far as I can tell, in termios, if the OPOST bit of c_oflag is not set, then
termios shouldn't wrangle the output characters regardless of the other flags.
However in ecos 3.0, io/serial/v3_0/src/common/termiostty.c line 612 reads:
if ( (*buf == '\n') && (priv->termios.c_oflag & (OPOST|ONLCR)) ) {
Should this be (OPOST&ONLCR)?
This tripped me up quite badly trying to use a binary UART interface to an
external device using code originally written for UNIX that just cleared OPOST.
ONLCR seems to be set by default.
Apologies if this has already been fixed in CVS.
Regards,
Adam
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-08 15:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-08 14:53 [Bug 1001477] New: TERMIOS does not completely respect OPOST bugzilla-daemon
2012-02-08 15:00 ` [Bug 1001477] " bugzilla-daemon
2012-02-08 14:53 [Bug 1001477] New: " bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).