diff options
| author | Glenn Morris | 2012-06-21 16:06:07 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-06-21 16:06:07 -0400 |
| commit | 63541ed8860c83b9c60847812848a4bd92d18bf6 (patch) | |
| tree | f34c7e6d5bdbdc857802697240a7124c4ef076dd /src | |
| parent | dd7a987e45495a4d6136e44818d58103974e4650 (diff) | |
| download | emacs-63541ed8860c83b9c60847812848a4bd92d18bf6.tar.gz emacs-63541ed8860c83b9c60847812848a4bd92d18bf6.zip | |
* src/charset.c (init_charset): Make lack of etc/charsets fatal.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/charset.c | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 838703578c6..2173778c29c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-06-21 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * charset.c (init_charset): Make lack of etc/charsets fatal. | ||
| 4 | |||
| 1 | 2012-06-11 Jan Djärv <jan.h.d@swipnet.se> | 5 | 2012-06-11 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * nsterm.m (x_free_frame_resources): Move xfree so freed memory isn't | 7 | * nsterm.m (x_free_frame_resources): Move xfree so freed memory isn't |
diff --git a/src/charset.c b/src/charset.c index d287fc0bece..4e004f9634c 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -2304,11 +2304,15 @@ init_charset (void) | |||
| 2304 | tempdir = Fexpand_file_name (build_string ("charsets"), Vdata_directory); | 2304 | tempdir = Fexpand_file_name (build_string ("charsets"), Vdata_directory); |
| 2305 | if (access (SSDATA (tempdir), 0) < 0) | 2305 | if (access (SSDATA (tempdir), 0) < 0) |
| 2306 | { | 2306 | { |
| 2307 | dir_warning ("Error: charsets directory (%s) does not exist.\n\ | 2307 | /* This used to be non-fatal (dir_warning), but it should not |
| 2308 | happen, and if it does sooner or later it will cause some | ||
| 2309 | obscure problem (eg bug#909), so better abort. */ | ||
| 2310 | fprintf (stderr, "Error: charsets directory not found:\n\ | ||
| 2311 | %s\n\ | ||
| 2308 | Emacs will not function correctly without the character map files.\n\ | 2312 | Emacs will not function correctly without the character map files.\n\ |
| 2309 | Please check your installation!\n", | 2313 | Please check your installation!\n", |
| 2310 | tempdir); | 2314 | SDATA (tempdir)); |
| 2311 | /* TODO should this be a fatal error? (Bug#909) */ | 2315 | exit (1); |
| 2312 | } | 2316 | } |
| 2313 | 2317 | ||
| 2314 | Vcharset_map_path = Fcons (tempdir, Qnil); | 2318 | Vcharset_map_path = Fcons (tempdir, Qnil); |