diff src/fileio.c @ 45640:a181c1d41a78

(choose_write_coding_system): Call select-safe-coding-system properly.
author Pavel Janík <Pavel@Janik.cz>
date Wed, 05 Jun 2002 05:16:48 +0000
parents 6d7e86e98b2c
children 9c590b35c6cf
line wrap: on
line diff
--- a/src/fileio.c	Wed Jun 05 05:07:58 2002 +0000
+++ b/src/fileio.c	Wed Jun 05 05:16:48 2002 +0000
@@ -4674,8 +4674,8 @@
       if (!force_raw_text
 	  && !NILP (Ffboundp (Vselect_safe_coding_system_function)))
 	/* Confirm that VAL can surely encode the current region.  */
-	val = call4 (Vselect_safe_coding_system_function,
-		     start, end, val, filename);
+	val = call5 (Vselect_safe_coding_system_function,
+		     start, end, val, Qnil, filename);
 
       setup_coding_system (Fcheck_coding_system (val), coding);
       if (coding->eol_type == CODING_EOL_UNDECIDED