Skip to content

Commit a448b15

Browse files
committed
tmp test what made ci fail
1 parent a13a471 commit a448b15

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tcpdump.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,27 +2140,6 @@ main(int argc, char **argv)
21402140

21412141
if (ndo->ndo_utf8) {
21422142

2143-
#if defined(_WIN32)
2144-
/* On Windows, explicitly set UTF-8 locale and console code page for mbrtowc() to work */
2145-
/* Try multiple locale formats for compatibility across Windows versions */
2146-
if (setlocale(LC_CTYPE, ".UTF-8") == NULL) {
2147-
if (setlocale(LC_CTYPE, ".UTF8") == NULL) {
2148-
if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) {
2149-
setlocale(LC_CTYPE, "C.UTF-8");
2150-
}
2151-
}
2152-
}
2153-
/* Also set console code page to UTF-8 (65001) */
2154-
SetConsoleOutputCP(65001);
2155-
SetConsoleCP(65001);
2156-
#else
2157-
char const *locale = getenv("LANG");
2158-
if (locale == NULL)
2159-
locale = "en_US";
2160-
2161-
setlocale(LC_CTYPE, locale);
2162-
#endif
2163-
21642143
}
21652144

21662145
if (ndo->ndo_Aflag && ndo->ndo_xflag)

0 commit comments

Comments
 (0)