diff --git a/source/texk/ptexenc/ptexenc.c b/source/texk/ptexenc/ptexenc.c index f4ccc3735..a7bc95298 100644 --- a/source/texk/ptexenc/ptexenc.c +++ b/source/texk/ptexenc/ptexenc.c @@ -224,7 +224,11 @@ boolean is_internalUPTEX(void) boolean is_terminalUTF8(void) { - return (terminal_enc == ENC_UTF8); +#ifdef WIN32 + return false; +#else + get_terminal_enc(); return (terminal_enc == ENC_UTF8); +#endif } diff --git a/source/texk/web2c/ptexdir/ptex-base.ch b/source/texk/web2c/ptexdir/ptex-base.ch index cf81fca10..21b558cda 100644 --- a/source/texk/web2c/ptexdir/ptex-base.ch +++ b/source/texk/web2c/ptexdir/ptex-base.ch @@ -6732,7 +6732,7 @@ end name_of_file := xmalloc(cur_length*4+1); k := 0; for d:=0 to cur_length-1 do - append_to_name(str_pool[str_start[str_ptr]+d]); + append_to_name_char(str_pool[str_start[str_ptr]+d]); name_of_file[k+1] := 0; runsystem_ret := runsystem(conststringcast(name_of_file+1)); @z