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
This commit is contained in:
Guy Harris 2000-07-05 02:06:58 +00:00
parent 0c94e5bd81
commit 1e59b9dc86
1 changed files with 5 additions and 1 deletions

View File

@ -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,