From 3f9227ee5a00e53d844ca4289068f11e19c400a2 Mon Sep 17 00:00:00 2001 From: Hironobu Yamashita Date: Mon, 4 Mar 2019 11:30:33 +0000 Subject: bibtexu: print ICU version git-svn-id: svn://tug.org/texlive/trunk@50222 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/bibtex-x/ChangeLog | 1 + Build/source/texk/bibtex-x/bibtex.c | 12 +++++++++++- Build/source/texk/bibtex-x/utils.c | 10 ++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) 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 + * bibtex.c, utils.c: Print ICU version in BibTeXu. * bibtex-2.c: Suppress compiler warnings. 2017-04-27 Karl Berry 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); -- cgit v1.2.3