Commit d7259fdb authored by Kenichi Handa's avatar Kenichi Handa

(report_file_error): Make a unibyte string from

strerror (errorno).
(Fsubstitute_in_file_name): Fix the arg to
unibyte_char_to_multibyte.  It is evaluated twice.
parent 503815da
......@@ -256,9 +256,12 @@ report_file_error (string, data)
{
Lisp_Object errstring;
int errorno = errno;
char *str;
synchronize_system_messages_locale ();
errstring = code_convert_string_norecord (build_string (strerror (errorno)),
str = strerror (errorno);
errstring = code_convert_string_norecord (make_unibyte_string (str,
strlen (str)),
Vlocale_coding_system, 0);
while (1)
......@@ -2251,7 +2254,8 @@ duplicates what `expand-file-name' does. */)
convert what we substitute into multibyte. */
while (*o)
{
int c = unibyte_char_to_multibyte (*o++);
int c = unibyte_char_to_multibyte (*o);
o++;
x += CHAR_STRING (c, x);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment