aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 3317c1203bc..2966711978b 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1606,17 +1606,24 @@ init_callproc (void)
1606 source directory. */ 1606 source directory. */
1607 if (data_dir == 0) 1607 if (data_dir == 0)
1608 { 1608 {
1609 Lisp_Object tem, tem1, srcdir; 1609 Lisp_Object tem, tem1, tem2, srcdir;
1610#ifdef WINDOWSNT
1611 /* PATH_DUMPLOADSEARCH is in ANSI codepage; convert to UTF-8. */
1612 char dumpload_dir[MAX_UTF8_PATH];
1613
1614 filename_from_ansi (PATH_DUMPLOADSEARCH, dumpload_dir);
1615 tem2 = build_unibyte_string (dumpload_dir);
1616#else
1617 tem2 = build_unibyte_string (PATH_DUMPLOADSEARCH);
1618#endif
1610 1619
1611 srcdir = Fexpand_file_name (build_string ("../src/"), 1620 srcdir = Fexpand_file_name (build_string ("../src/"), tem2);
1612 build_unibyte_string (PATH_DUMPLOADSEARCH));
1613 tem = Fexpand_file_name (build_string ("GNU"), Vdata_directory); 1621 tem = Fexpand_file_name (build_string ("GNU"), Vdata_directory);
1614 tem1 = Ffile_exists_p (tem); 1622 tem1 = Ffile_exists_p (tem);
1615 if (!NILP (Fequal (srcdir, Vinvocation_directory)) || NILP (tem1)) 1623 if (!NILP (Fequal (srcdir, Vinvocation_directory)) || NILP (tem1))
1616 { 1624 {
1617 Lisp_Object newdir; 1625 Lisp_Object newdir;
1618 newdir = Fexpand_file_name (build_string ("../etc/"), 1626 newdir = Fexpand_file_name (build_string ("../etc/"), tem2);
1619 build_unibyte_string (PATH_DUMPLOADSEARCH));
1620 tem = Fexpand_file_name (build_string ("GNU"), newdir); 1627 tem = Fexpand_file_name (build_string ("GNU"), newdir);
1621 tem1 = Ffile_exists_p (tem); 1628 tem1 = Ffile_exists_p (tem);
1622 if (!NILP (tem1)) 1629 if (!NILP (tem1))