diff options
-rw-r--r-- | Build/source/texk/ptexenc/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/ptexenc/ptexenc.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/ptexenc/ChangeLog b/Build/source/texk/ptexenc/ChangeLog index e8b5c4a9fdf..26bb9d1fe52 100644 --- a/Build/source/texk/ptexenc/ChangeLog +++ b/Build/source/texk/ptexenc/ChangeLog @@ -1,3 +1,8 @@ +2018-03-26 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * ptexenc.c: Change default_kanji_enc from ENC_SJIS to ENC_UTF8 + (Windows only). + 2018-01-17 Karl Berry <karl@freefriends.org> * ptexenc.c: #include <kpathsea/c-pathmx.h>, per Debian. diff --git a/Build/source/texk/ptexenc/ptexenc.c b/Build/source/texk/ptexenc/ptexenc.c index e4d6ff980c6..602b7f86698 100644 --- a/Build/source/texk/ptexenc/ptexenc.c +++ b/Build/source/texk/ptexenc/ptexenc.c @@ -155,7 +155,7 @@ void enable_UPTEX (boolean enable) internal_enc = ENC_UPTEX; } else { #ifdef WIN32 - default_kanji_enc = ENC_SJIS; + default_kanji_enc = ENC_UTF8; internal_enc = ENC_SJIS; #else default_kanji_enc = ENC_UTF8; @@ -841,7 +841,7 @@ long input_line2(FILE *fp, unsigned char *buff, long pos, return last; } -// set encode of stdin if fp = NULL +/* set encode of stdin if fp = NULL */ boolean setinfileenc(FILE *fp, const char *str) { int enc; |