diff options
author | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2022-02-05 23:54:51 +0000 |
---|---|---|
committer | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2022-02-05 23:54:51 +0000 |
commit | e665a6c3a8f6b343142332c31758ca1e18159d4b (patch) | |
tree | b2ef45236b8c32062e25be082dfed4cd3fc86408 /Build/source/texk/ptexenc | |
parent | ff56ea3f9875d8a0b631c7b13248791da7266c86 (diff) |
ptex: quote in \write18, non-JP file name (H. Kitagawa)
git-svn-id: svn://tug.org/texlive/trunk@61906 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ptexenc')
-rw-r--r-- | Build/source/texk/ptexenc/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/ptexenc/ptexenc.c | 9 | ||||
-rw-r--r-- | Build/source/texk/ptexenc/ptexenc/ptexenc.h | 3 |
3 files changed, 16 insertions, 0 deletions
diff --git a/Build/source/texk/ptexenc/ChangeLog b/Build/source/texk/ptexenc/ChangeLog index bc121f89771..da27cab596f 100644 --- a/Build/source/texk/ptexenc/ChangeLog +++ b/Build/source/texk/ptexenc/ChangeLog @@ -1,3 +1,7 @@ +2022-02-05 Hironori Kitagawa <h_kitagawa2001@yahoo.co.jp> + + * ptexenc.c, ptexenc/ptexenc.h: Add is_terminalUTF8. + 2022-01-22 Hironori Kitagawa <h_kitagawa2001@yahoo.co.jp> * ptexenc.c, ptexenc/ptexenc.h, unicode.c, ptexenc/unicode.h: diff --git a/Build/source/texk/ptexenc/ptexenc.c b/Build/source/texk/ptexenc/ptexenc.c index ee28d39ddab..35f0fe9b7f0 100644 --- a/Build/source/texk/ptexenc/ptexenc.c +++ b/Build/source/texk/ptexenc/ptexenc.c @@ -222,6 +222,15 @@ boolean is_internalUPTEX(void) return (internal_enc == ENC_UPTEX); } +boolean is_terminalUTF8(void) +{ +#ifdef WIN32 + return false; +#else + get_terminal_enc(); return (terminal_enc == ENC_UTF8); +#endif +} + /* check char range */ boolean ismultichr (int length, int nth, int c) diff --git a/Build/source/texk/ptexenc/ptexenc/ptexenc.h b/Build/source/texk/ptexenc/ptexenc/ptexenc.h index e1641978237..5ed63e8c93b 100644 --- a/Build/source/texk/ptexenc/ptexenc/ptexenc.h +++ b/Build/source/texk/ptexenc/ptexenc/ptexenc.h @@ -52,6 +52,9 @@ extern PTENCDLL boolean is_internalUPTEX(void); #define isinternalEUC is_internalEUC #define isinternalUPTEX is_internalUPTEX +extern PTENCDLL boolean is_terminalUTF8(void); +#define isterminalUTF8 is_terminalUTF8 + /* check char range */ extern PTENCDLL boolean ismultichr (int length, int nth, int c); extern PTENCDLL boolean iskanji1(int c); |