diff options
| author | Eli Zaretskii | 2013-12-07 16:45:31 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-12-07 16:45:31 +0200 |
| commit | 080fd64974060e6b47573c94af2b80f1a5f3ef2c (patch) | |
| tree | 16e92fcf37207dfd19d1ae14e57b0bde2121f3a5 /src/callproc.c | |
| parent | 94ae1542354539a0660b21cf3b7a5143139b8375 (diff) | |
| download | emacs-080fd64974060e6b47573c94af2b80f1a5f3ef2c.tar.gz emacs-080fd64974060e6b47573c94af2b80f1a5f3ef2c.zip | |
Fixed initialization code and default-printer-name.
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 17 |
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)) |