texlive[58865] Build/source/texk/web2c/xetexdir/XeTeX_ext.c: Always

commits+jonathan at tug.org commits+jonathan at tug.org
Tue Apr 13 10:41:50 CEST 2021


Revision: 58865
          http://tug.org/svn/texlive?view=revision&revision=58865
Author:   jonathan
Date:     2021-04-13 10:41:50 +0200 (Tue, 13 Apr 2021)
Log Message:
-----------
Always ensure teckit converter is reset after use.

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/xetexdir/XeTeX_ext.c

Modified: trunk/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
===================================================================
--- trunk/Build/source/texk/web2c/xetexdir/XeTeX_ext.c	2021-04-13 04:39:22 UTC (rev 58864)
+++ trunk/Build/source/texk/web2c/xetexdir/XeTeX_ext.c	2021-04-13 08:41:50 UTC (rev 58865)
@@ -315,6 +315,7 @@
 
     status = TECkit_ConvertBuffer(*normPtr, (Byte*)buf, len * sizeof(UInt32), &inUsed,
                 (Byte*)&buffer[first], sizeof(*buffer) * (bufsize - first), &outUsed, 1);
+    TECkit_ResetConverter(*normPtr);
     if (status != kStatus_NoError)
         buffer_overflow();
     last = first + outUsed / sizeof(*buffer);
@@ -693,6 +694,7 @@
     /* TECkit_Status status; */
     /* status = */ TECkit_ConvertBuffer((TECkit_Converter)cnv,
             (const Byte*)&in, sizeof(in), &inUsed, out, sizeof(out), &outUsed, 1);
+    TECkit_ResetConverter((TECkit_Converter)cnv);
     if (outUsed < 1)
         return 0;
     else
@@ -1754,6 +1756,7 @@
     status = TECkit_ConvertBuffer(cnv,
             (Byte*)txtPtr, txtLen * sizeof(UniChar), &inUsed,
             (Byte*)mappedtext, outLength, &outUsed, true);
+    TECkit_ResetConverter(cnv);
 
     switch (status) {
         case kStatus_NoError:



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