diff options
Diffstat (limited to 'Build/source/texk')
-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); |