diff options
Diffstat (limited to 'tfshark.c')
-rw-r--r-- | tfshark.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -348,8 +348,15 @@ main(int argc, char *argv[]) static const char optstring[] = OPTSTRING; - /* Set the C-language locale to the native environment. */ + /* + * Set the C-language locale to the native environment and set the + * code page to UTF-8 on Windows. + */ +#ifdef _WIN32 + setlocale(LC_ALL, ".UTF-8"); +#else setlocale(LC_ALL, ""); +#endif cmdarg_err_init(failure_warning_message, failure_message_cont); |