texlive[46729] Build/source/texk/kpathsea: kpathsea/tex-make.c:

commits+hironobu at tug.org commits+hironobu at tug.org
Sat Feb 24 02:01:50 CET 2018


Revision: 46729
          http://tug.org/svn/texlive?view=revision&revision=46729
Author:   hironobu
Date:     2018-02-24 02:01:50 +0100 (Sat, 24 Feb 2018)
Log Message:
-----------
kpathsea/tex-make.c: improve an error message

Modified Paths:
--------------
    trunk/Build/source/texk/kpathsea/ChangeLog
    trunk/Build/source/texk/kpathsea/tex-make.c

Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog	2018-02-23 23:44:41 UTC (rev 46728)
+++ trunk/Build/source/texk/kpathsea/ChangeLog	2018-02-24 01:01:50 UTC (rev 46729)
@@ -1,3 +1,11 @@
+2018-02-24  Hironobu Yamashita  <h.y.acetaminophen at gmail.com>
+	* tex-make.c (kpathsea_make_tex): Change an error message
+	"Invalid fontname" to "Invalid filename", since
+	  $ tex -fmt=-a x
+	causes
+	  kpathsea:make_tex: Invalid fontname `-a.fmt', starts with '-'
+	but it is a format file.
+
 2018-02-23  Karl Berry  <karl at freefriends.org>
 
 	* lib.h (LIB_START_FATAL): mention that the identifier `kpse'

Modified: trunk/Build/source/texk/kpathsea/tex-make.c
===================================================================
--- trunk/Build/source/texk/kpathsea/tex-make.c	2018-02-23 23:44:41 UTC (rev 46728)
+++ trunk/Build/source/texk/kpathsea/tex-make.c	2018-02-24 01:01:50 UTC (rev 46729)
@@ -1,6 +1,6 @@
 /* tex-make.c: run external programs to make TeX-related files.
 
-   Copyright 1993, 1994, 1995, 1996, 1997, 2008-2013 Karl Berry.
+   Copyright 1993, 1994, 1995, 1996, 1997, 2008-2013, 2018 Karl Berry.
    Copyright 1997, 1998, 2001-05 Olaf Weber.
 
    This library is free software; you can redistribute it and/or
@@ -437,7 +437,7 @@
      * No doubt some possibilities were overlooked.
      */
     if (base[0] == '-' /* || IS_DIR_SEP(base[0])  */) {
-      fprintf(stderr, "kpathsea:make_tex: Invalid fontname `%s', starts with '%c'\n",
+      fprintf(stderr, "kpathsea:make_tex: Invalid filename `%s', starts with '%c'\n",
               base, base[0]);
       return NULL;
     }
@@ -449,7 +449,7 @@
           && base[i] != '.'
           && !IS_DIR_SEP(base[i]))
       {
-        fprintf(stderr, "kpathsea:make_tex: Invalid fontname `%s', contains '%c'\n",
+        fprintf(stderr, "kpathsea:make_tex: Invalid filename `%s', contains '%c'\n",
                 base, base[i]);
         return NULL;
       }



More information about the tex-live-commits mailing list