Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6d557778
Commit
6d557778
authored
Mar 29, 2008
by
Eli Zaretskii
Browse files
(Fexpand_file_name): Convert the value of $HOME to a multibyte string.
parent
115c0061
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/fileio.c
src/fileio.c
+6
-0
No files found.
src/ChangeLog
View file @
6d557778
2008-03-29 Eli Zaretskii <eliz@gnu.org>
* fileio.c (Fexpand_file_name): Convert the value of $HOME to a
multibyte string.
2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
* keyboard.c (pending_funcalls): New var.
...
...
src/fileio.c
View file @
6d557778
...
...
@@ -1378,9 +1378,15 @@ See also the function `substitute-in-file-name'. */)
#endif /* VMS */
|| nm[1] == 0) /* ~ by itself */
{
Lisp_Object tem;
if (!(newdir = (unsigned char *) egetenv ("HOME")))
newdir = (unsigned char *) "";
nm++;
/* egetenv may return a unibyte string, which will bite us since
we expect the directory to be multibyte. */
tem = string_to_multibyte (build_string (newdir));
newdir = SDATA (tem);
#ifdef DOS_NT
collapse_newdir = 0;
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment