http://bugs.winehq.org/show_bug.cgi?id=9986
Summary: serial/COM code misinterprets XON/XOFF direction Product: Wine Version: 0.9.46. Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-misc AssignedTo: wine-bugs@winehq.org ReportedBy: tombrus@gmail.com
The code in dlls/ntdll/serial.c interprets SERIAL_AUTO_RECEIVE to IXON and SERIAL_AUTO_TRANSMIT to IXOFF (and visa versa). This is wrong way around, SERIAL_AUTO_RECEIVE corresponds to IXOFF and SERIAL_AUTO_TRANSMIT to IXON.
http://bugs.winehq.org/show_bug.cgi?id=9986
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox_xerox2000@yahoo.co.uk
--- Comment #1 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2007-10-11 07:06:39 --- Hi , could you attach your patch that fixes this, for review by developers? Thanks
http://bugs.winehq.org/show_bug.cgi?id=9986
--- Comment #2 from Tom Brus tombrus@gmail.com 2007-10-11 07:09:58 --- Some further explanation:
Many Linux sources mention: IXON = Enable start/stop output control. IXOFF = Enable start/stop input control.
I found some doc at http://www.ekf.de/c/ccom/drv_i960/ekf960mle.pdf that explains: SERIAL_AUTO_TRANSMIT: Use the XON/XOFF protocol based flow control for output. SERIAL_AUTO_RECEIVE : Use the XON/XOFF protocol based flow control for input.
From this we can conclude that:
IXON <=> SERIAL_AUTO_TRANSMIT IXOFF <=> SERIAL_AUTO_RECEIVE
Unfortunately I do not have example code at hand.
I will attach a patch shortly.
http://bugs.winehq.org/show_bug.cgi?id=9986
--- Comment #3 from Tom Brus tombrus@gmail.com 2007-10-11 07:26:39 --- Created an attachment (id=8508) --> (http://bugs.winehq.org/attachment.cgi?id=8508) patch for serial.c
The patch to fix this bug.
http://bugs.winehq.org/show_bug.cgi?id=9986
--- Comment #4 from Juan Lang juan_lang@yahoo.com 2007-10-11 11:43:59 --- Patch and explanation look good, please forward to wine-patches
http://bugs.winehq.org/show_bug.cgi?id=9986
--- Comment #5 from Dmitry Timoshkov dmitry@codeweavers.com 2007-10-29 09:26:04 --- The patch has been committed. Please retest and close the bug if appropriate.
http://bugs.winehq.org/show_bug.cgi?id=9986
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #6 from Juan Lang juan_lang@yahoo.com 2007-10-29 18:22:44 --- Marking fixed, please close if you verify it.
http://bugs.winehq.org/show_bug.cgi?id=9986
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED Component|-unknown |ntdll
--- Comment #7 from Vitaliy Margolen vitaliy@kievinfo.com 2008-01-06 23:22:04 --- Closing