# HG changeset patch # User aidan # Date 1148329681 0 # Node ID e13aec8357bb9e198aecad0b5961c381f8928abe # Parent 88b62bce19cfcf21e497717ab380551932d68922 [xemacs-hg @ 2006-05-22 20:27:57 by aidan] Prevent a crash with a debug XEmacs and mule. diff -r 88b62bce19cf -r e13aec8357bb src/ChangeLog --- a/src/ChangeLog Sun May 21 21:51:14 2006 +0000 +++ b/src/ChangeLog Mon May 22 20:28:01 2006 +0000 @@ -1,3 +1,9 @@ +2006-05-22 Aidan Kehoe + + * file-coding.c (output_bytes_in_ascii_and_hex): + Pass stderr_out internally-formatted data, don't use an external + format. + 2006-05-21 Aidan Kehoe * doc.c (extract_object_file_name): diff -r 88b62bce19cf -r e13aec8357bb src/file-coding.c --- a/src/file-coding.c Sun May 21 21:51:14 2006 +0000 +++ b/src/file-coding.c Mon May 22 20:28:01 2006 +0000 @@ -3370,6 +3370,8 @@ UExtbyte *ascii = alloca_array (UExtbyte, n + 1); UExtbyte *hex = alloca_array (UExtbyte, 3 * n + 1); int i; + DECLARE_EISTRING (eistr_ascii); + DECLARE_EISTRING (eistr_hex); for (i = 0; i < n; i++) { @@ -3384,7 +3386,11 @@ } ascii[i] = '\0'; hex[3 * i - 1] = '\0'; - stderr_out ("%s %s", ascii, hex); + + eicpy_ext(eistr_hex, hex, Qbinary); + eicpy_ext(eistr_ascii, ascii, Qbinary); + + stderr_out ("%s %s", eidata(eistr_ascii), eidata(eistr_hex)); } #endif /* DEBUG_XEMACS */