posix: clear OCRNL/ONLCR flags (CR/LF translation settings)
diff --git a/CHANGES.rst b/CHANGES.rst
index 70880a8..1e34b4f 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -521,4 +521,5 @@
- fix setXON
- [Patch pyserial:36 / 38] Make USB information work in python 3.4 and 2.7
+- clear OCRNL/ONLCR flags (CR/LF translation settings)
diff --git a/serial/serialposix.py b/serial/serialposix.py
index 5542d28..41c4423 100644
--- a/serial/serialposix.py
+++ b/serial/serialposix.py
@@ -337,7 +337,7 @@
if hasattr(TERMIOS, flag):
lflag &= ~getattr(TERMIOS, flag)
- oflag &= ~(TERMIOS.OPOST)
+ oflag &= ~(TERMIOS.OPOST|TERMIOS.ONLCR|TERMIOS.OCRNL)
iflag &= ~(TERMIOS.INLCR|TERMIOS.IGNCR|TERMIOS.ICRNL|TERMIOS.IGNBRK)
if hasattr(TERMIOS, 'IUCLC'):
iflag &= ~TERMIOS.IUCLC