aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-06-21 23:48:41 +0000
committerTom Tromey <tromey@redhat.com>2002-06-21 23:48:41 +0000
commit0fbb3da7b7698d851a815dd5b2f0735358321d8c (patch)
treed96d5c64cd433a5594ff3a42209a7a70ebe8b390 /gdb/main.c
parent3558860c6112499e15ab430b849c5c17dc725a68 (diff)
downloadgdb-0fbb3da7b7698d851a815dd5b2f0735358321d8c.zip
gdb-0fbb3da7b7698d851a815dd5b2f0735358321d8c.tar.gz
gdb-0fbb3da7b7698d851a815dd5b2f0735358321d8c.tar.bz2
* gdb_locale.h: New file.
* Makefile.in (GDB_CFLAGS): Define LOCALEDIR. (defs_h): Added gdb_locale.h. * configure, config.in: Rebuilt. * configure.in (PACKAGE): Define. * defs.h: Include gdb_locale.h. * main.c (captured_main): Call setlocale, bindtextdomain,
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 7ef8647..21a81c6 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -157,6 +157,15 @@ captured_main (void *data)
long time_at_startup = get_run_time ();
+#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
+ setlocale (LC_MESSAGES, "");
+#endif
+#if defined (HAVE_SETLOCALE)
+ setlocale (LC_CTYPE, "");
+#endif
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
START_PROGRESS (argv[0], 0);
#ifdef MPW