diff options
author | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2018-02-24 01:01:50 +0000 |
---|---|---|
committer | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2018-02-24 01:01:50 +0000 |
commit | 6ed72827fc120d608b6f512dbe7974a17af59ed4 (patch) | |
tree | 1e5a5c200bb92e7118df03d9c7ced078411d944a /Build/source/texk | |
parent | 6fb61bdb22aa744ec4248f969733b91af6060d04 (diff) |
kpathsea/tex-make.c: improve an error message
git-svn-id: svn://tug.org/texlive/trunk@46729 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 8 | ||||
-rw-r--r-- | 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 <h.y.acetaminophen@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@freefriends.org> * 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; } |