aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-07-05 02:06:58 +0000
committerGuy Harris <guy@alum.mit.edu>2000-07-05 02:06:58 +0000
commit1e59b9dc86881820eecfe183f335b36ebd8692b4 (patch)
tree5e65c91f8e54767e6c839f9470d4c95d384ad1bc /tethereal.c
parent0c94e5bd815bff0da5ba2cafa9bee73b3af8894e (diff)
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.c6
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,