From b52d1866987e0b6a5b15ff0cb1289c91d276c884 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Tue, 26 Feb 2019 17:52:06 +0100
Subject: erts: Remove 7-bit ASCII limitation in to_erl

Symptom: to_erl garbles anything beyond 7-bit ASCII received on STDIN

Solution: Remove setting of ISTRIP flag on input terminal.

"man tcsetattr" says:

ISTRIP Strip off eighth bit.
---
 erts/etc/unix/to_erl.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/erts/etc/unix/to_erl.c b/erts/etc/unix/to_erl.c
index afff8f7e54..ed4fe12e8b 100644
--- a/erts/etc/unix/to_erl.c
+++ b/erts/etc/unix/to_erl.c
@@ -245,7 +245,6 @@ int main(int argc, char **argv)
     tty_smode.c_iflag =
 	1*BRKINT |/*Signal interrupt on break.*/
 	    1*IGNPAR |/*Ignore characters with parity errors.*/
-		1*ISTRIP |/*Strip character.*/
 		    0;
     
 #if 0
-- 
cgit v1.2.3