]> git.eshelyaron.com Git - emacs.git/commit
Fix decoding of directories when "~" includes non-ASCII chars
authorEli Zaretskii <eliz@gnu.org>
Fri, 18 May 2018 13:34:19 +0000 (16:34 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 2 Jun 2018 09:37:19 +0000 (12:37 +0300)
commit6e0ff4cc1f261def00f9f9dd581ba6ef72703f0c
tree406a66a7ed14dca5884fb5001473c6a9a624e71e
parent35c1ab1419174f72010c745d963a55b6c183443c
Fix decoding of directories when "~" includes non-ASCII chars

* src/fileio.c (Fexpand_file_name): Don't build multibyte strings
from unibyte non-ASCII strings when NAME and DEFAULT_DIRECTORY
have different multibyteness, as this adds bytes to the byte
sequence, and in some situations, e.g., when the home directory
includes non-ASCII characters, can fail file APIs.  (Bug#30755)

* lisp/startup.el (normal-top-level): Make sure default-directory
is set to a multibyte string when decoded on MS-Windows.

(cherry picked from commit 3aab8626ba5080bb04d0fdae52d99c850a842a52)
lisp/startup.el
src/fileio.c