summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-03-26 02:35:00 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-03-26 02:35:00 +0000
commit1956f03d9a3bda20a9c3a9127296fffa265e07ef (patch)
tree7f8eb0f8f6a3b229cb8220938911d61316232eb1
parenta1c63f31cef50e80f71e8fe805badf45ec4855bf (diff)
use default_kanji_enc = ENC_UTF8 also on Windows (ptexenc)
git-svn-id: svn://tug.org/texlive/trunk@47124 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/ptexenc/ChangeLog5
-rw-r--r--Build/source/texk/ptexenc/ptexenc.c4
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;