diff options
author | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2019-03-04 11:30:33 +0000 |
---|---|---|
committer | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2019-03-04 11:30:33 +0000 |
commit | 3f9227ee5a00e53d844ca4289068f11e19c400a2 (patch) | |
tree | 5f47c8c0cb5385a8a760c65348b6ef7d5777ca8a /Build/source | |
parent | 42910b9e5b267d68445ddc32c2e77cada1736b8e (diff) |
bibtexu: print ICU version
git-svn-id: svn://tug.org/texlive/trunk@50222 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/bibtex-x/ChangeLog | 1 | ||||
-rw-r--r-- | Build/source/texk/bibtex-x/bibtex.c | 12 | ||||
-rw-r--r-- | Build/source/texk/bibtex-x/utils.c | 10 |
3 files changed, 22 insertions, 1 deletions
diff --git a/Build/source/texk/bibtex-x/ChangeLog b/Build/source/texk/bibtex-x/ChangeLog index 4675b4d1642..2b285944e4f 100644 --- a/Build/source/texk/bibtex-x/ChangeLog +++ b/Build/source/texk/bibtex-x/ChangeLog @@ -1,5 +1,6 @@ 2019-03-04 Hironobu Yamashita <h.y.acetaminophen@gmail.com> + * bibtex.c, utils.c: Print ICU version in BibTeXu. * bibtex-2.c: Suppress compiler warnings. 2017-04-27 Karl Berry <karl@tug.org> diff --git a/Build/source/texk/bibtex-x/bibtex.c b/Build/source/texk/bibtex-x/bibtex.c index 0964f4df60c..eeed86aa6af 100644 --- a/Build/source/texk/bibtex-x/bibtex.c +++ b/Build/source/texk/bibtex-x/bibtex.c @@ -277,7 +277,17 @@ BEGIN if (log_file != NULL) { FPRINTF (log_file, "%s\n", BANNER); FPRINTF (log_file, "Implementation: %s\n", IMPLEMENTATION); - FPRINTF (log_file, "Release version: %s\n\n", VERSION); + FPRINTF (log_file, "Release version: %s\n", VERSION); +#ifdef UTF_8 + { + UVersionInfo icuVersion; + char icu_version[U_MAX_VERSION_STRING_LENGTH] = ""; + u_getVersion(icuVersion); + u_versionToString(icuVersion, icu_version); + FPRINTF (log_file, "Compiled with: ICU version %s\n", icu_version); + } +#endif + FPRINTF (log_file, "\n"); } #ifdef SUPPORT_8BIT diff --git a/Build/source/texk/bibtex-x/utils.c b/Build/source/texk/bibtex-x/utils.c index 44b3c82da32..c05c475a25b 100644 --- a/Build/source/texk/bibtex-x/utils.c +++ b/Build/source/texk/bibtex-x/utils.c @@ -1080,6 +1080,16 @@ void parse_cmd_line (int argc, char **argv) FPRINTF (TERM_OUT, "%s\n", BANNER); FPRINTF (TERM_OUT, "Implementation: %s\n", IMPLEMENTATION); FPRINTF (TERM_OUT, "Release version: %s\n", VERSION); +#ifdef UTF_8 + { + UVersionInfo icuVersion; + char icu_version[U_MAX_VERSION_STRING_LENGTH] = ""; + u_getVersion(icuVersion); + u_versionToString(icuVersion, icu_version); + FPRINTF (TERM_OUT, "Compiled with: ICU version %s\n", icu_version); + } +#endif + debug_msg (DBG_MISC, "calling longjmp (Exit_Program_Flag) ... "); longjmp (Exit_Program_Flag, 1); |