diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2022-02-18 20:19:20 -0600 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2022-02-18 20:25:00 -0600 |
commit | 8374a33c804a728bf435da801571ae9905244f50 (patch) | |
tree | e601e61efda62b48aa2d8d5c6d5eeeebf7af1c41 /print/tex-ptexenc/files/patch-ptexenc.c | |
parent | x11/nwg-dock: update to 0.3.0 (diff) |
- Update MASTER_SITES_TEX_CTAN from https://tug.org/historic/
- Update texlua to use texlua53 library
- Deprecate CSLaTeX format
- Remove aleph as per Upstream
- Add common variables TEXLIVE_YEAR and TEXLIVE_VERSION to be used in
all ports related to tex*
- Fix dependency of print/texlive-texmf-source [1]
- devel/tex-kpathsea: Update version 6.2.1=>6.3.3
- devel/tex-libtexlua: Update version 5.2.4=>5.3.6
- devel/tex-libtexluajit: Update version 2.0.3=>2.1.0
- devel/tex-synctex: Update version 1.17.0=>2.0.0
- devel/tex-web2c: Update version 20150521=>20210325
- editors/texworks: Fix build with newer tex version
- print/tex-basic-engines: Update version 20150521=>20210325
- print/tex-dvipdfmax: Update version 20150521=>20210325
- print/tex-dvipsk: Update version 5.995=>20210325.1
- print/tex-formats: Update version 20150521=>20210325
- print/tex-jadetex:
- print/tex-luatex: Update version 0.80.0=>1.12.0
* Convert to dynamic pkg-plist
- print/tex-ptexenc: Update version 1.3.3=>1.3.9
- print/tex-xetex: Update version 0.99992=>0.99993
* Convert to dynamic pkg-plist
- print/texlive-base: Update version 20150521=>20210325
- print/texlive-docs: Update version 20150521=>20210325
* Convert to dynamic pkg-plist
- print/texlive-full: Update version 20150521=>20210325
- print/texlive-texmf-source: Update version 20150521=>20210325
- print/texlive-texmf: Update version 20150521=>20210325
* Convert to dynamic pkg-plist
- print/texlive-tlmgr: Update version 20150521=>20210325
- print/xpdfopen: Transfer MAINTAINER to tex@ as xpdfopen is an
integral part of tex after poppler support has been deprecated from
tex [2]
- textproc/dblatex: Update version 0.3.11=>0.3.12
* Take MAINTAINERship
- textproc/gastex: Fix build
- textproc/metauml: Fix build
PR: 226983 [1]
Reported by: Trond.Endrestol@ximalas.info [1]
Reviewed by: tcberner (private repo)
Approved by: hrs (maintainer-timeout) [2]
Relnotes: https://tug.org/texlive/doc/texlive-en/texlive-en.html#news
Sponsored by: Nepustil.net
Diffstat (limited to 'print/tex-ptexenc/files/patch-ptexenc.c')
-rw-r--r-- | print/tex-ptexenc/files/patch-ptexenc.c | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/print/tex-ptexenc/files/patch-ptexenc.c b/print/tex-ptexenc/files/patch-ptexenc.c index 8fa961ac162b..e90f45a594c2 100644 --- a/print/tex-ptexenc/files/patch-ptexenc.c +++ b/print/tex-ptexenc/files/patch-ptexenc.c @@ -1,6 +1,6 @@ ---- ptexenc.c.orig 2014-04-28 06:37:18 UTC +--- ptexenc.c.orig 2022-01-29 14:44:21 UTC +++ ptexenc.c -@@ -15,6 +15,7 @@ +@@ -16,6 +16,7 @@ #include <ptexenc/unicode-jp.h> #include <ctype.h> @@ -8,7 +8,7 @@ #define ENC_UNKNOWN 0 #define ENC_JIS 1 -@@ -23,10 +24,46 @@ +@@ -24,10 +25,46 @@ #define ENC_UTF8 4 #define ENC_UPTEX 5 @@ -18,45 +18,45 @@ static boolean prior_file_enc = false; +static struct le { -+ char *name; -+ int enc; -+ int flag; ++ char *name; ++ int enc; ++ int flag; +} letable[] = { -+ {"*.UTF-8", ENC_UTF8, FNM_NOESCAPE}, -+ {"*.eucJP", ENC_EUC, FNM_NOESCAPE | FNM_CASEFOLD}, -+ {"*.EUC-JP", ENC_EUC, FNM_NOESCAPE}, -+ {"*.EUC", ENC_EUC, FNM_NOESCAPE | FNM_CASEFOLD}, -+ {"*.PCK", ENC_SJIS, FNM_NOESCAPE | FNM_CASEFOLD}, -+ {"*.SJIS", ENC_SJIS, FNM_NOESCAPE | FNM_CASEFOLD}, -+ {"*.ISO-2022-JP", ENC_JIS, FNM_NOESCAPE | FNM_CASEFOLD}, -+ {NULL, 0, 0} ++ {"*.UTF-8", ENC_UTF8, FNM_NOESCAPE}, ++ {"*.eucJP", ENC_EUC, FNM_NOESCAPE | FNM_CASEFOLD}, ++ {"*.EUC-JP", ENC_EUC, FNM_NOESCAPE}, ++ {"*.EUC", ENC_EUC, FNM_NOESCAPE | FNM_CASEFOLD}, ++ {"*.PCK", ENC_SJIS, FNM_NOESCAPE | FNM_CASEFOLD}, ++ {"*.SJIS", ENC_SJIS, FNM_NOESCAPE | FNM_CASEFOLD}, ++ {"*.ISO-2022-JP", ENC_JIS, FNM_NOESCAPE | FNM_CASEFOLD}, ++ {NULL, 0, 0} +}; + +static int +default_kanji_enc(void) +{ -+ struct le *le; -+ const char *name; -+ int i; ++ struct le *le; ++ const char *name; ++ int i; + -+ if (default_kanji_is_uptex) -+ return (ENC_UPTEX); -+ name = getenv("LANG"); -+ if (name == NULL) -+ return (ENC_UTF8); ++ if (default_kanji_is_uptex) ++ return (ENC_UPTEX); ++ name = getenv("LANG"); ++ if (name == NULL) ++ return (ENC_UTF8); + -+ for (i = 0; letable[i].name != NULL; i++) { -+ if (fnmatch(letable[i].name, name, letable[i].flag) != -+ FNM_NOMATCH) -+ return (letable[i].enc); -+ } -+ return (ENC_UTF8); ++ for (i = 0; letable[i].name != NULL; i++) { ++ if (fnmatch(letable[i].name, name, letable[i].flag) != ++ FNM_NOMATCH) ++ return (letable[i].enc); ++ } ++ return (ENC_UTF8); +} + #define ESC '\033' #ifndef NOFILE -@@ -64,7 +101,7 @@ static const_string enc_to_string(int en +@@ -64,7 +101,7 @@ const_string enc_to_string(int enc) static int string_to_enc(const_string str) { if (str == NULL) return ENC_UNKNOWN; @@ -83,7 +83,7 @@ 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; |