summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-08-18 16:24:27 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-08-18 16:24:57 -0700
commitaab8326b28f460a47f0a073612a8c8f9e9d8ec2f (patch)
treecc3e03a6f0102eafb97237edf7fc9418b267dbcf /src/print.c
parent636736861688abe73cc5dd4181fdb66de3fd8cfd (diff)
downloademacs-aab8326b28f460a47f0a073612a8c8f9e9d8ec2f.tar.gz
Fix multibyte confusion in diagnostics
* src/print.c (print_error_message): Don't assume that the caller's name is unibyte. * src/xdisp.c (vadd_to_log): Don't assume that the formatted diagnostic is unibyte.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c
index f396151eaa1..af615749f37 100644
--- a/src/print.c
+++ b/src/print.c
@@ -902,7 +902,7 @@ print_error_message (Lisp_Object data, Lisp_Object stream, const char *context,
USE_SAFE_ALLOCA;
char *name = SAFE_ALLOCA (cnamelen);
memcpy (name, SDATA (cname), cnamelen);
- message_dolog (name, cnamelen, 0, 0);
+ message_dolog (name, cnamelen, 0, STRING_MULTIBYTE (cname));
message_dolog (": ", 2, 0, 0);
SAFE_FREE ();
}