aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2012-06-21 16:06:07 -0400
committerGlenn Morris2012-06-21 16:06:07 -0400
commit63541ed8860c83b9c60847812848a4bd92d18bf6 (patch)
treef34c7e6d5bdbdc857802697240a7124c4ef076dd /src
parentdd7a987e45495a4d6136e44818d58103974e4650 (diff)
downloademacs-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/ChangeLog4
-rw-r--r--src/charset.c10
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 @@
12012-06-21 Glenn Morris <rgm@gnu.org>
2
3 * charset.c (init_charset): Make lack of etc/charsets fatal.
4
12012-06-11 Jan Djärv <jan.h.d@swipnet.se> 52012-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\
2308Emacs will not function correctly without the character map files.\n\ 2312Emacs will not function correctly without the character map files.\n\
2309Please check your installation!\n", 2313Please 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);