+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.
#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