texlive[67578] Build/source/texk/bibtex-x: bibtex-x: enable to build

commits+takuji at tug.org commits+takuji at tug.org
Sat Jul 8 06:45:11 CEST 2023


Revision: 67578
          http://tug.org/svn/texlive?view=revision&revision=67578
Author:   takuji
Date:     2023-07-08 06:45:11 +0200 (Sat, 08 Jul 2023)
Log Message:
-----------
bibtex-x: enable to build with icu.dll for Windows 10

Modified Paths:
--------------
    trunk/Build/source/texk/bibtex-x/ChangeLog
    trunk/Build/source/texk/bibtex-x/bibtex-1.c
    trunk/Build/source/texk/bibtex-x/bibtex-4.c
    trunk/Build/source/texk/bibtex-x/gblprocs.h
    trunk/Build/source/texk/bibtex-x/utils.c

Modified: trunk/Build/source/texk/bibtex-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/bibtex-x/ChangeLog	2023-07-08 02:32:53 UTC (rev 67577)
+++ trunk/Build/source/texk/bibtex-x/ChangeLog	2023-07-08 04:45:11 UTC (rev 67578)
@@ -1,3 +1,12 @@
+2023-07-08  TANAKA Takuji  <ttk at t-lab.opal.ne.jp>
+
+	* utils.c, gblprocs.h:
+	Enable to build with system ICU DLL icu.dll
+	for Windows 10 version 1903 (May 2019 Update) or later.
+	https://learn.microsoft.com/en-us/windows/win32/intl/international-components-for-unicode--icu-
+	* bibtex-{1,4}.c:
+	Enable to build with older ICU.
+
 2023-04-12  Karl Berry  <karl at freefriends.org>
 
 	* tests/bibtex8.test,

Modified: trunk/Build/source/texk/bibtex-x/bibtex-1.c
===================================================================
--- trunk/Build/source/texk/bibtex-x/bibtex-1.c	2023-07-08 02:32:53 UTC (rev 67577)
+++ trunk/Build/source/texk/bibtex-x/bibtex-1.c	2023-07-08 04:45:11 UTC (rev 67578)
@@ -330,8 +330,10 @@
             case UBLOCK_LATIN_EXTENDED_C:
             case UBLOCK_LATIN_EXTENDED_D:
             case UBLOCK_LATIN_EXTENDED_E:
+#if defined(UBLOCK_LATIN_EXTENDED_G)
             case UBLOCK_LATIN_EXTENDED_F:
             case UBLOCK_LATIN_EXTENDED_G:
+#endif
             case UBLOCK_LATIN_EXTENDED_ADDITIONAL:
             case UBLOCK_GREEK:
             case UBLOCK_GREEK_EXTENDED:

Modified: trunk/Build/source/texk/bibtex-x/bibtex-4.c
===================================================================
--- trunk/Build/source/texk/bibtex-x/bibtex-4.c	2023-07-08 02:32:53 UTC (rev 67577)
+++ trunk/Build/source/texk/bibtex-x/bibtex-4.c	2023-07-08 04:45:11 UTC (rev 67578)
@@ -2818,7 +2818,9 @@
           case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D:
           case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E:
           case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F:
+#if defined(UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_G)
           case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_G:
+#endif
             string_width |= 0x001;
             break;
       /* kana */
@@ -2826,8 +2828,12 @@
           case UBLOCK_KATAKANA:
           case UBLOCK_KATAKANA_PHONETIC_EXTENSIONS:
           case UBLOCK_KANA_EXTENDED_A:
+#if defined(UBLOCK_KANA_EXTENDED_B)
           case UBLOCK_KANA_EXTENDED_B:
+#endif
+#if defined(UBLOCK_SMALL_KANA_EXTENSION)
           case UBLOCK_SMALL_KANA_EXTENSION:
+#endif
             string_width |= 0x002;
             break;
       /* hangul */

Modified: trunk/Build/source/texk/bibtex-x/gblprocs.h
===================================================================
--- trunk/Build/source/texk/bibtex-x/gblprocs.h	2023-07-08 02:32:53 UTC (rev 67577)
+++ trunk/Build/source/texk/bibtex-x/gblprocs.h	2023-07-08 04:45:11 UTC (rev 67578)
@@ -92,10 +92,14 @@
 
 
 #ifdef UTF_8
+#if defined(WIN32) && defined(WITH_SYSTEM_ICU)
+#include "icu.h"
+#else
 #include "unicode/uchar.h"
 #include "unicode/ustdio.h"
 #include "unicode/ustring.h"
 #include "unicode/ucol.h"
+#endif
 int32_t                 icu_toUChars (BufType_T buf,
                                       BufPointer_T bf_ptr,
                                       BufPointer_T len,

Modified: trunk/Build/source/texk/bibtex-x/utils.c
===================================================================
--- trunk/Build/source/texk/bibtex-x/utils.c	2023-07-08 02:32:53 UTC (rev 67577)
+++ trunk/Build/source/texk/bibtex-x/utils.c	2023-07-08 04:45:11 UTC (rev 67578)
@@ -121,7 +121,9 @@
 
 #include <stdarg.h>
 #ifdef WIN32
+#if !defined(_MSC_VER)
 #include <getopt.h>
+#endif
 #else
 #include <unistd.h>
 #endif
@@ -133,7 +135,7 @@
 #include <kpathsea/paths.h>
 #include <kpathsea/variable.h>
 #include <kpathsea/lib.h>
-#ifndef WIN32
+#if !defined(WIN32) || defined(_MSC_VER)
 #include <kpathsea/getopt.h>
 #endif
 #endif



More information about the tex-live-commits mailing list.