aboutsummaryrefslogtreecommitdiffstats
path: root/tfshark.c
diff options
context:
space:
mode:
Diffstat (limited to 'tfshark.c')
-rw-r--r--tfshark.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tfshark.c b/tfshark.c
index b0fd8aa553..8b1b43a23f 100644
--- a/tfshark.c
+++ b/tfshark.c
@@ -814,6 +814,9 @@ main(int argc, char *argv[])
static const char optstring[] = OPTSTRING;
+ /* Set the C-language locale to the native environment. */
+ setlocale(LC_ALL, "");
+
cmdarg_err_init(failure_message, failure_message_cont);
#ifdef _WIN32
@@ -1029,9 +1032,6 @@ main(int argc, char *argv[])
return 0;
}
- /* Set the C-language locale to the native environment. */
- setlocale(LC_ALL, "");
-
prefs_p = read_prefs(&gpf_open_errno, &gpf_read_errno, &gpf_path,
&pf_open_errno, &pf_read_errno, &pf_path);
if (gpf_path != NULL) {