changeset 70705:73da2b5d5e9c

(Fcall_process): Reject encoding arguments by ascii-incompatible coding systems (e.g. utf-16).
author Kenichi Handa <handa@m17n.org>
date Thu, 18 May 2006 02:19:53 +0000
parents 576f5c8ea6e4
children 4bd88182f5ec
files src/callproc.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Thu May 18 02:19:01 2006 +0000
+++ b/src/callproc.c	Thu May 18 02:19:53 2006 +0000
@@ -295,6 +295,8 @@
 	      val = Qnil;
 	  }
 	setup_coding_system (Fcheck_coding_system (val), &argument_coding);
+	if (argument_coding.common_flags & CODING_ASCII_INCOMPATIBLE_MASK)
+	  setup_coding_system (Qraw_text, &argument_coding);
 	if (argument_coding.eol_type == CODING_EOL_UNDECIDED)
 	  argument_coding.eol_type = system_eol_type;
       }