diff options
author | Tom Tromey <tromey@redhat.com> | 2002-06-21 23:48:41 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2002-06-21 23:48:41 +0000 |
commit | 0fbb3da7b7698d851a815dd5b2f0735358321d8c (patch) | |
tree | d96d5c64cd433a5594ff3a42209a7a70ebe8b390 /gdb/main.c | |
parent | 3558860c6112499e15ab430b849c5c17dc725a68 (diff) | |
download | gdb-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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |