aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2013-10-26 16:43:58 +0300
committerEli Zaretskii2013-10-26 16:43:58 +0300
commitc556b44bd53f77077d4a92baba6fa381f6400d5b (patch)
tree60581588a8d114843860b79aa1357f2e56371053 /src
parent2a03e2bc6fcc64b2624a9635c899812e4510136a (diff)
downloademacs-c556b44bd53f77077d4a92baba6fa381f6400d5b.tar.gz
emacs-c556b44bd53f77077d4a92baba6fa381f6400d5b.zip
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'.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/emacs.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f625044067d..e1c85624573 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12013-10-26 Eli Zaretskii <eliz@gnu.org>
2
3 * emacs.c (Fdump_emacs): Encode FILENAME and SYMFILE arguments
4 before passing them to 'unexec'. (Bug#15260)
5
12013-10-26 Xue Fuqiao <xfq.free@gmail.com> 62013-10-26 Xue Fuqiao <xfq.free@gmail.com>
2 7
3 * fringe.c (set_fringe_bitmap_face): Add usage note from lispref. 8 * fringe.c (set_fringe_bitmap_face): Add usage note from lispref.
diff --git a/src/emacs.c b/src/emacs.c
index 540084abc44..b5d281da317 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -2044,11 +2044,15 @@ You must run Emacs in batch mode in order to dump it. */)
2044 2044
2045 CHECK_STRING (filename); 2045 CHECK_STRING (filename);
2046 filename = Fexpand_file_name (filename, Qnil); 2046 filename = Fexpand_file_name (filename, Qnil);
2047 filename = ENCODE_FILE (filename);
2047 if (!NILP (symfile)) 2048 if (!NILP (symfile))
2048 { 2049 {
2049 CHECK_STRING (symfile); 2050 CHECK_STRING (symfile);
2050 if (SCHARS (symfile)) 2051 if (SCHARS (symfile))
2051 symfile = Fexpand_file_name (symfile, Qnil); 2052 {
2053 symfile = Fexpand_file_name (symfile, Qnil);
2054 symfile = ENCODE_FILE (symfile);
2055 }
2052 } 2056 }
2053 2057
2054 tem = Vpurify_flag; 2058 tem = Vpurify_flag;