From 6ed72827fc120d608b6f512dbe7974a17af59ed4 Mon Sep 17 00:00:00 2001 From: Hironobu Yamashita Date: Sat, 24 Feb 2018 01:01:50 +0000 Subject: kpathsea/tex-make.c: improve an error message git-svn-id: svn://tug.org/texlive/trunk@46729 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/ChangeLog | 8 ++++++++ Build/source/texk/kpathsea/tex-make.c | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index 136db935232..6a1aa9c5829 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,11 @@ +2018-02-24 Hironobu Yamashita + * 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 * lib.h (LIB_START_FATAL): mention that the identifier `kpse' diff --git a/Build/source/texk/kpathsea/tex-make.c b/Build/source/texk/kpathsea/tex-make.c index 6671b5474ba..95851fdd561 100644 --- a/Build/source/texk/kpathsea/tex-make.c +++ b/Build/source/texk/kpathsea/tex-make.c @@ -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 @@ kpathsea_make_tex (kpathsea kpse, kpse_file_format_type format, * 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 @@ kpathsea_make_tex (kpathsea kpse, kpse_file_format_type format, && 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; } -- cgit v1.2.3