texlive[49830] Build/source/texk/dvipdfm-x: suppress wrong warning

commits+kakuto at tug.org commits+kakuto at tug.org
Sun Jan 27 07:55:26 CET 2019


Revision: 49830
          http://tug.org/svn/texlive?view=revision&revision=49830
Author:   kakuto
Date:     2019-01-27 07:55:25 +0100 (Sun, 27 Jan 2019)
Log Message:
-----------
suppress wrong warning (H. Hirata)

Modified Paths:
--------------
    trunk/Build/source/texk/dvipdfm-x/ChangeLog
    trunk/Build/source/texk/dvipdfm-x/configure
    trunk/Build/source/texk/dvipdfm-x/configure.ac
    trunk/Build/source/texk/dvipdfm-x/spc_pdfm.c

Modified: trunk/Build/source/texk/dvipdfm-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/ChangeLog	2019-01-27 01:23:44 UTC (rev 49829)
+++ trunk/Build/source/texk/dvipdfm-x/ChangeLog	2019-01-27 06:55:25 UTC (rev 49830)
@@ -1,3 +1,9 @@
+2019-01-27  Shunsaku Hirata  <shunsaku.hirata74 at gmail.com>
+
+	* spc_pdfm.c: Supress warning on tounicode special.
+	Dvipdfmx had been giving a wrong warning when an optional
+	argument to tounicode special is not supplied.
+
 2018-12-27  Clerk Ma  <maqiyuan130324 at vip.qq.com>
 
 	* pdfobj.c: Introduce a static variable pdf_output_file_stats

Modified: trunk/Build/source/texk/dvipdfm-x/configure
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/configure	2019-01-27 01:23:44 UTC (rev 49829)
+++ trunk/Build/source/texk/dvipdfm-x/configure	2019-01-27 06:55:25 UTC (rev 49830)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for dvipdfm-x (TeX Live) 20181221.
+# Generated by GNU Autoconf 2.69 for dvipdfm-x (TeX Live) 20190127.
 #
 # Report bugs to <tex-k at tug.org>.
 #
@@ -590,8 +590,8 @@
 # Identity of this package.
 PACKAGE_NAME='dvipdfm-x (TeX Live)'
 PACKAGE_TARNAME='dvipdfm-x--tex-live-'
-PACKAGE_VERSION='20181221'
-PACKAGE_STRING='dvipdfm-x (TeX Live) 20181221'
+PACKAGE_VERSION='20190127'
+PACKAGE_STRING='dvipdfm-x (TeX Live) 20190127'
 PACKAGE_BUGREPORT='tex-k at tug.org'
 PACKAGE_URL=''
 
@@ -1350,7 +1350,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures dvipdfm-x (TeX Live) 20181221 to adapt to many kinds of systems.
+\`configure' configures dvipdfm-x (TeX Live) 20190127 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1421,7 +1421,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of dvipdfm-x (TeX Live) 20181221:";;
+     short | recursive ) echo "Configuration of dvipdfm-x (TeX Live) 20190127:";;
    esac
   cat <<\_ACEOF
 
@@ -1551,7 +1551,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-dvipdfm-x (TeX Live) configure 20181221
+dvipdfm-x (TeX Live) configure 20190127
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2390,7 +2390,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by dvipdfm-x (TeX Live) $as_me 20181221, which was
+It was created by dvipdfm-x (TeX Live) $as_me 20190127, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -8077,7 +8077,7 @@
 
 # Define the identity of the package.
  PACKAGE='dvipdfm-x--tex-live-'
- VERSION='20181221'
+ VERSION='20190127'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -14746,7 +14746,7 @@
 Report bugs to <bug-libtool at gnu.org>."
 
 lt_cl_version="\
-dvipdfm-x (TeX Live) config.lt 20181221
+dvipdfm-x (TeX Live) config.lt 20190127
 configured by $0, generated by GNU Autoconf 2.69.
 
 Copyright (C) 2011 Free Software Foundation, Inc.
@@ -16636,7 +16636,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by dvipdfm-x (TeX Live) $as_me 20181221, which was
+This file was extended by dvipdfm-x (TeX Live) $as_me 20190127, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -16706,7 +16706,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-dvipdfm-x (TeX Live) config.status 20181221
+dvipdfm-x (TeX Live) config.status 20190127
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 

Modified: trunk/Build/source/texk/dvipdfm-x/configure.ac
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/configure.ac	2019-01-27 01:23:44 UTC (rev 49829)
+++ trunk/Build/source/texk/dvipdfm-x/configure.ac	2019-01-27 06:55:25 UTC (rev 49830)
@@ -7,7 +7,7 @@
 dnl   gives unlimited permission to copy and/or distribute it,
 dnl   with or without modifications, as long as this notice is preserved.
 dnl
-AC_INIT([dvipdfm-x (TeX Live)], [20181221], [tex-k at tug.org])
+AC_INIT([dvipdfm-x (TeX Live)], [20190127], [tex-k at tug.org])
 AC_PREREQ([2.65])
 AC_CONFIG_SRCDIR([agl.c])
 AC_CONFIG_AUX_DIR([../../build-aux])

Modified: trunk/Build/source/texk/dvipdfm-x/spc_pdfm.c
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/spc_pdfm.c	2019-01-27 01:23:44 UTC (rev 49829)
+++ trunk/Build/source/texk/dvipdfm-x/spc_pdfm.c	2019-01-27 06:55:25 UTC (rev 49830)
@@ -1,6 +1,6 @@
 /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
 
-    Copyright (C) 2007-2018 by Jin-Hwan Cho and Shunsaku Hirata,
+    Copyright (C) 2007-2019 by Jin-Hwan Cho and Shunsaku Hirata,
     the dvipdfmx project team.
     
     Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks at kettering.edu>
@@ -1906,25 +1906,32 @@
   }
   RELEASE(cmap_name);
 
-  /* Additional "taint key" */
-  taint_keys = parse_pdf_object(&args->curptr, args->endptr, NULL);
-  if (taint_keys) {
-    if (PDF_OBJ_ARRAYTYPE(taint_keys)) {
-      int i;
-      for (i = 0; i < pdf_array_length(taint_keys); i++) {
-        pdf_obj *key;
+  /* Additional "taint key"
+   * An array of PDF name objects can be supplied optionally.
+   * Dictionary entries specified by this option will be added to the list
+   * of dictionary keys to be treated as the target of "ToUnicode" conversion.
+   */
+  skip_white(&args->curptr, args->endptr);
+  if (args->curptr < args->endptr) {
+    taint_keys = parse_pdf_object(&args->curptr, args->endptr, NULL);
+    if (taint_keys) {
+      if (PDF_OBJ_ARRAYTYPE(taint_keys)) {
+        int i;
+        for (i = 0; i < pdf_array_length(taint_keys); i++) {
+          pdf_obj *key;
         
-        key = pdf_get_array(taint_keys, i);
-        if (PDF_OBJ_NAMETYPE(key))
-          pdf_add_array(sd->cd.taintkeys, pdf_link_obj(key));
-        else {
-          spc_warn(spe, "Invalid argument specified in pdf:tounicode special.");
+          key = pdf_get_array(taint_keys, i);
+          if (PDF_OBJ_NAMETYPE(key))
+            pdf_add_array(sd->cd.taintkeys, pdf_link_obj(key));
+          else {
+            spc_warn(spe, "Invalid argument specified in pdf:tounicode special.");
+          }
         }
+      } else {
+        spc_warn(spe, "Invalid argument specified in pdf:unicode special.");
       }
-    } else {
-      spc_warn(spe, "Invalid argument specified in pdf:unicode special.");
+      pdf_release_obj(taint_keys);
     }
-    pdf_release_obj(taint_keys);
   }
 
   return 0;



More information about the tex-live-commits mailing list