Enable IDN processing (both idnin and idnout) only on tty, disable it when the stdout is not a tty
(cherry picked from commit 0e1bf7d017)
This commit is contained in:
committed by
Mark Andrews
parent
8dcaf90874
commit
cd83fb94c6
+2
-2
@@ -664,12 +664,12 @@ make_empty_lookup(void) {
|
||||
looknew->ttlunits = false;
|
||||
looknew->qr = false;
|
||||
#ifdef WITH_IDN_SUPPORT
|
||||
looknew->idnin = true;
|
||||
looknew->idnin = isatty(1)?(getenv("IDN_DISABLE") == NULL):false;
|
||||
#else
|
||||
looknew->idnin = false;
|
||||
#endif
|
||||
#ifdef WITH_IDN_OUT_SUPPORT
|
||||
looknew->idnout = true;
|
||||
looknew->idnout = looknew->idnin;
|
||||
#else
|
||||
looknew->idnout = false;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user