diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 2 | ||||
| -rw-r--r-- | src/charset.c | 20 |
2 files changed, 14 insertions, 8 deletions
diff --git a/src/callproc.c b/src/callproc.c index 4473b19a297..20e0bc50dab 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -1598,6 +1598,8 @@ init_callproc (void) | |||
| 1598 | Lisp_Object path_game = build_unibyte_string (PATH_GAME); | 1598 | Lisp_Object path_game = build_unibyte_string (PATH_GAME); |
| 1599 | if (file_accessible_directory_p (path_game)) | 1599 | if (file_accessible_directory_p (path_game)) |
| 1600 | gamedir = path_game; | 1600 | gamedir = path_game; |
| 1601 | else if (errno != ENOENT && errno != ENOTDIR) | ||
| 1602 | dir_warning ("game dir", path_game); | ||
| 1601 | } | 1603 | } |
| 1602 | Vshared_game_score_directory = gamedir; | 1604 | Vshared_game_score_directory = gamedir; |
| 1603 | } | 1605 | } |
diff --git a/src/charset.c b/src/charset.c index 8c54381dc48..93206aa29b0 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -2292,14 +2292,18 @@ init_charset (void) | |||
| 2292 | { | 2292 | { |
| 2293 | /* This used to be non-fatal (dir_warning), but it should not | 2293 | /* This used to be non-fatal (dir_warning), but it should not |
| 2294 | happen, and if it does sooner or later it will cause some | 2294 | happen, and if it does sooner or later it will cause some |
| 2295 | obscure problem (eg bug#6401), so better abort. */ | 2295 | obscure problem (eg bug#6401), so better exit. */ |
| 2296 | fprintf (stderr, "Error: charsets directory not found:\n\ | 2296 | fprintf (stderr, |
| 2297 | %s\n\ | 2297 | ("Error: %s: %s\n" |
| 2298 | Emacs will not function correctly without the character map files.\n%s\ | 2298 | "Emacs will not function correctly " |
| 2299 | Please check your installation!\n", | 2299 | "without the character map files.\n" |
| 2300 | SDATA (tempdir), | 2300 | "%s" |
| 2301 | egetenv("EMACSDATA") ? "The EMACSDATA environment \ | 2301 | "Please check your installation!\n"), |
| 2302 | variable is set, maybe it has the wrong value?\n" : ""); | 2302 | SDATA (tempdir), strerror (errno), |
| 2303 | (egetenv ("EMACSDATA") | ||
| 2304 | ? ("The EMACSDATA environment variable is set. " | ||
| 2305 | "Maybe it has the wrong value?\n") | ||
| 2306 | : "")); | ||
| 2303 | exit (1); | 2307 | exit (1); |
| 2304 | } | 2308 | } |
| 2305 | 2309 | ||