diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-07-05 02:06:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-07-05 02:06:58 +0000 |
commit | 1e59b9dc86881820eecfe183f335b36ebd8692b4 (patch) | |
tree | 5e65c91f8e54767e6c839f9470d4c95d384ad1bc /tethereal.c | |
parent | 0c94e5bd815bff0da5ba2cafa9bee73b3af8894e (diff) | |
download | wireshark-1e59b9dc86881820eecfe183f335b36ebd8692b4.tar.gz wireshark-1e59b9dc86881820eecfe183f335b36ebd8692b4.tar.bz2 wireshark-1e59b9dc86881820eecfe183f335b36ebd8692b4.zip |
Set the locale for Tethereal to the native environment; Ethereal already
does so, as a side-effect of calling "gtk_set_locale()".
svn path=/trunk/; revision=2111
Diffstat (limited to 'tethereal.c')
-rw-r--r-- | tethereal.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tethereal.c b/tethereal.c index 4861552ca5..318f321619 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1,6 +1,6 @@ /* tethereal.c * - * $Id: tethereal.c,v 1.32 2000/07/03 08:35:42 guy Exp $ + * $Id: tethereal.c,v 1.33 2000/07/05 02:06:58 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -31,6 +31,7 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> +#include <locale.h> #ifdef HAVE_UNISTD_H #include <unistd.h> @@ -187,6 +188,9 @@ main(int argc, char *argv[]) exit(0); } + /* Set the C-language locale to the native environment. */ + setlocale(LC_ALL, ""); + prefs = read_prefs(&pf_path); if (pf_path != NULL) { fprintf(stderr, "Can't open preferences file \"%s\": %s.\n", pf_path, |