+2014-10-28 Eli Zaretskii <eliz@gnu.org>
+
+ * fileio.c (Fexpand_file_name): Use make_unibyte_string, not
+ build_string, when importing a home directory. (Bug#18873)
+
2014-10-26 Eli Zaretskii <eliz@gnu.org>
* dispnew.c (buffer_posn_from_coords): Use
char newdir_utf8[MAX_UTF8_PATH];
filename_from_ansi (newdir, newdir_utf8);
- tem = build_string (newdir_utf8);
+ tem = make_unibyte_string (newdir_utf8, strlen (newdir_utf8));
}
else
#endif
/* `getpwnam' may return a unibyte string, which will
bite us since we expect the directory to be
multibyte. */
- tem = build_string (newdir);
+ tem = make_unibyte_string (newdir, strlen (newdir));
if (multibyte && !STRING_MULTIBYTE (tem))
{
hdir = DECODE_FILE (tem);