diff options
Diffstat (limited to 'src/input.c')
| -rw-r--r-- | src/input.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c index f585d71..3bad009 100644 --- a/src/input.c +++ b/src/input.c @@ -7,6 +7,9 @@ #include <string.h> #include <unistd.h> +#include "shell.h" + +#include "charset.h" #include "exec.h" #include "interact.h" #include "parser.h" @@ -47,8 +50,10 @@ void input_push_fd(int fd, bool is_stdin) { /* * z/OS: read a script in whatever character set it is in. Not for * stdin, whose conversion state the commands being run would share. + * An ASCII build needs it for its own scripts; an EBCDIC build reads + * IBM-1047 as it stands, and must not be handed a converted copy. */ - if (SYS_MVS && !is_stdin) + if (SYS_MVS && ZASH_ASCII && !is_stdin) sys_input_cvt(fd); if (is_stdin) { if (isatty(fd)) |
