Fix part of bug #15260 with from directory with a non-ASCII name.

src/emacs.c (Fdump_emacs): Encode FILENAME and SYMFILE arguments
 before passing them to 'unexec'.
This commit is contained in:
Eli Zaretskii 2013-10-26 16:43:58 +03:00
parent 2a03e2bc6f
commit c556b44bd5
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-10-26 Eli Zaretskii <eliz@gnu.org>
* emacs.c (Fdump_emacs): Encode FILENAME and SYMFILE arguments
before passing them to 'unexec'. (Bug#15260)
2013-10-26 Xue Fuqiao <xfq.free@gmail.com>
* fringe.c (set_fringe_bitmap_face): Add usage note from lispref.

View file

@ -2044,11 +2044,15 @@ You must run Emacs in batch mode in order to dump it. */)
CHECK_STRING (filename);
filename = Fexpand_file_name (filename, Qnil);
filename = ENCODE_FILE (filename);
if (!NILP (symfile))
{
CHECK_STRING (symfile);
if (SCHARS (symfile))
symfile = Fexpand_file_name (symfile, Qnil);
{
symfile = Fexpand_file_name (symfile, Qnil);
symfile = ENCODE_FILE (symfile);
}
}
tem = Vpurify_flag;