This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1001477] New: TERMIOS does not completely respect OPOST
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: unassigned at bugs dot ecos dot sourceware dot org
- Date: Wed, 8 Feb 2012 14:52:51 +0000
- Subject: [Bug 1001477] New: TERMIOS does not completely respect OPOST
- Auto-submitted: auto-generated
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.