File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -398,6 +398,8 @@ def parse_arguments() -> Tuple[argparse.Namespace, List[str]]:
398398
399399
400400def main () -> None :
401+ sys .stdout .reconfigure (encoding = 'utf-8' )
402+ sys .stderr .reconfigure (encoding = 'utf-8' )
401403 args , extra_args = parse_arguments ()
402404
403405 abbreviated_stds = args .std
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ void printf_deceptive_newline() {
5555}
5656
5757void printf_utf8_text () {
58- // UNSUPPORTED: system-windows
5958 printf (" 你好世界\n " );
6059 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'printf' [modernize-use-std-print]
6160 // CHECK-FIXES: std::println("你好世界");
@@ -311,7 +310,6 @@ void fprintf_simple() {
311310}
312311
313312void fprintf_utf8_text () {
314- // UNSUPPORTED: system-windows
315313 fprintf (stderr, " 你好世界\n " );
316314 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'fprintf' [modernize-use-std-print]
317315 // CHECK-FIXES: std::println(stderr, "你好世界");
You can’t perform that action at this time.
0 commit comments