File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments