changeset 568:430f8ca10ca6

[xemacs-hg @ 2001-05-24 12:12:03 by yoshiki] Norbert Koch's patch "Re: Notice of commit by yoshiki in XEmacs/xemacs/src", <vzu22bngmy.fsf@lamia.LF.net> * doprnt.c (emacs_doprnt_1): forgotten sons of Ben's error patch
author yoshiki
date Thu, 24 May 2001 12:12:16 +0000
parents 4a2749e56f92
children 9cdcb214753f
files src/ChangeLog src/doprnt.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu May 24 11:22:26 2001 +0000
+++ b/src/ChangeLog	Thu May 24 12:12:16 2001 +0000
@@ -1,3 +1,7 @@
+2001-05-24  Norbert Koch  <nk@LF.net>
+
+	* doprnt.c (emacs_doprnt_1): forgotten sons of Ben's error patch
+
 2001-05-06  Karl M. Hegbloom  <karlheg@hegbloom.net>
 
 	* config.h.in: HAVE_MKSTEMP
--- a/src/doprnt.c	Thu May 24 11:22:26 2001 +0000
+++ b/src/doprnt.c	Thu May 24 12:12:16 2001 +0000
@@ -559,7 +559,7 @@
 	      if (!INT_OR_FLOATP (obj))
 		{
 		  syntax_error ("format specifier %%%c doesn't match argument type",
-			 ch);
+			 make_char (ch));
 		}
 	      else if (strchr (double_converters, ch))
 		arg.d = XFLOATINT (obj);
@@ -585,7 +585,7 @@
 	      a = (Emchar) arg.l;
 
 	      if (!valid_char_p (a))
-	 syntax_error ("invalid character value %d to %%c spec", a);
+	 syntax_error ("invalid character value %d to %%c spec", make_char (a));
 
 	      charlen = set_charptr_emchar (charbuf, a);
 	      doprnt_1 (stream, charbuf, charlen, spec->minwidth,