texlive[50222] Build/source/texk/bibtex-x: bibtexu: print ICU version

commits+hironobu at tug.org commits+hironobu at tug.org
Mon Mar 4 12:30:33 CET 2019


Revision: 50222
          http://tug.org/svn/texlive?view=revision&revision=50222
Author:   hironobu
Date:     2019-03-04 12:30:33 +0100 (Mon, 04 Mar 2019)
Log Message:
-----------
bibtexu: print ICU version

Modified Paths:
--------------
    trunk/Build/source/texk/bibtex-x/ChangeLog
    trunk/Build/source/texk/bibtex-x/bibtex.c
    trunk/Build/source/texk/bibtex-x/utils.c

Modified: trunk/Build/source/texk/bibtex-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/bibtex-x/ChangeLog	2019-03-04 10:16:54 UTC (rev 50221)
+++ trunk/Build/source/texk/bibtex-x/ChangeLog	2019-03-04 11:30:33 UTC (rev 50222)
@@ -1,5 +1,6 @@
 2019-03-04  Hironobu Yamashita  <h.y.acetaminophen at gmail.com>
 
+	* bibtex.c, utils.c: Print ICU version in BibTeXu.
 	* bibtex-2.c: Suppress compiler warnings.
 
 2017-04-27  Karl Berry  <karl at tug.org>

Modified: trunk/Build/source/texk/bibtex-x/bibtex.c
===================================================================
--- trunk/Build/source/texk/bibtex-x/bibtex.c	2019-03-04 10:16:54 UTC (rev 50221)
+++ trunk/Build/source/texk/bibtex-x/bibtex.c	2019-03-04 11:30:33 UTC (rev 50222)
@@ -277,7 +277,17 @@
     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

Modified: trunk/Build/source/texk/bibtex-x/utils.c
===================================================================
--- trunk/Build/source/texk/bibtex-x/utils.c	2019-03-04 10:16:54 UTC (rev 50221)
+++ trunk/Build/source/texk/bibtex-x/utils.c	2019-03-04 11:30:33 UTC (rev 50222)
@@ -1080,6 +1080,16 @@
                 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);



More information about the tex-live-commits mailing list