diff options
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1016,6 +1016,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 @@ -1261,9 +1264,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) { |