This is the mail archive of the mailing list for the eCos project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001477] New: TERMIOS does not completely respect OPOST

Please do not reply to this email. Use the web interface provided at:

           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
             Class: Advice Request


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.


Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]