Skip to content

Commit 89c4bfc

Browse files
committed
Try to make CI happy
1 parent 021c34f commit 89c4bfc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang-tools-extra/test/clang-tidy/check_clang_tidy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ def parse_arguments() -> Tuple[argparse.Namespace, List[str]]:
398398

399399

400400
def 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

clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ void printf_deceptive_newline() {
5555
}
5656

5757
void 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

313312
void 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, "你好世界");

0 commit comments

Comments
 (0)