# HG changeset patch # User Kenichi Handa # Date 1147918793 0 # Node ID 73da2b5d5e9cb6daded112f03fa0bf662df43b85 # Parent 576f5c8ea6e496fe45101e95324d8020416f3346 (Fcall_process): Reject encoding arguments by ascii-incompatible coding systems (e.g. utf-16). diff -r 576f5c8ea6e4 -r 73da2b5d5e9c src/callproc.c --- 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; }