changeset 45628:6d7e86e98b2c

(choose_write_coding_system): Pass FILE arg to Vselect_safe_coding_system_function.
author Richard M. Stallman <rms@gnu.org>
date Mon, 03 Jun 2002 22:36:06 +0000
parents f5eb1df26f64
children 6adda7388fcc
files src/fileio.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Mon Jun 03 18:03:26 2002 +0000
+++ b/src/fileio.c	Mon Jun 03 22:36:06 2002 +0000
@@ -4674,7 +4674,8 @@
       if (!force_raw_text
 	  && !NILP (Ffboundp (Vselect_safe_coding_system_function)))
 	/* Confirm that VAL can surely encode the current region.  */
-	val = call3 (Vselect_safe_coding_system_function, start, end, val);
+	val = call4 (Vselect_safe_coding_system_function,
+		     start, end, val, filename);
 
       setup_coding_system (Fcheck_coding_system (val), coding);
       if (coding->eol_type == CODING_EOL_UNDECIDED