]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/LibC/Uefi/SysCalls.c
StdLib: Fix issue with Canonical output expansion of NL to CR NL and similar expansions.
[mirror_edk2.git] / StdLib / LibC / Uefi / SysCalls.c
index c3b210120bd7a1c2a65cdcbc4b9ff99c0699bd77..a2b627bd121ac9ccfb47d1a996b1eb84814d638f 100644 (file)
@@ -708,7 +708,7 @@ open(
         if((oflags & O_TTY_INIT) && (filp->f_iflags & _S_ITTY) && (filp->devdata != NULL)) {\r
           // Initialize the device's termios flags to a "sane" value\r
           Termio = &((cIIO *)filp->devdata)->Termio;\r
-          Termio->c_iflag = ICRNL;\r
+          Termio->c_iflag = ICRNL | IGNSPEC;\r
           Termio->c_oflag = OPOST | ONLCR | OXTABS | ONOEOT | ONOCR | ONLRET | OCTRL;\r
           Termio->c_lflag = ECHO | ECHOE | ECHONL | ICANON;\r
           Termio->c_cc[VERASE]  = 0x08;   // ^H Backspace\r