From d5435fceb27212b1fb2eaf2ca932f71ed8e487d5 Mon Sep 17 00:00:00 2001 From: Jieyou Xu Date: Sat, 6 Jun 2026 03:08:40 +0800 Subject: [PATCH] Disable `tests/debuginfo/pretty-std.rs` `OsString` cdb check Since approx. Windows SDK 20348, the corresponding cdb (and/or its underlying WinDbg engine) changed or regressed the `OsStr`/`OsString` visualization, and no longer renders the emoji. Since approx. SDK/cdb 26100, the output formatting of the string containing UTF-8 (i.e. the multi-byte emoji grapheme) seems to have further regressed (e.g. the end quotation mark is no longer shown and command output becomes garbled). Relevant issues: * RUST-88840 * RUST-148743 * RUST-88796 --- tests/debuginfo/pretty-std.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/debuginfo/pretty-std.rs b/tests/debuginfo/pretty-std.rs index bf3102993d896..3ecaf02ab7d26 100644 --- a/tests/debuginfo/pretty-std.rs +++ b/tests/debuginfo/pretty-std.rs @@ -109,12 +109,15 @@ //@ cdb-check: [10] : 103 'g' [Type: char] //@ cdb-check: [11] : 33 '!' [Type: char] -//@ cdb-command: dx os_string -// NOTE: OSString is WTF-8 encoded which Windows debuggers don't understand. Verify the UTF-8 -// portion displays correctly. -//@ cdb-check:os_string : "IAMA OS string [...]" [Type: std::ffi::os_str::OsString] -//@ cdb-check: [] [Type: std::ffi::os_str::OsString] -//@ cdb-check: [chars] : "IAMA OS string [...]" +// FIXME(#88840, #148743, #88796): since approx. Windows SDK 20348, the corresponding cdb (and/or +// its underlying WinDbg engine) changed or regressed the `OsStr`/`OsString` visualization, and no +// longer renders the emoji. Since approx. 26100, the output formatting of the string containing +// UTF-8 (i.e. the multi-byte emoji grapheme) seems to have further regressed (e.g. the end +// quotation mark is no longer shown and command output becomes garbled). +//(DISABLED) @ cdb-command: dx os_string +//(DISABLED) @ cdb-check:os_string : "IAMA OS string 😃" [Type: std::ffi::os_str::OsString] +//(DISABLED) @ cdb-check: [] [Type: std::ffi::os_str::OsString] +//(DISABLED) @ cdb-check: [chars] : "IAMA OS string 😃" //@ cdb-command: dx some //@ cdb-check:some : Some [Type: enum2$ >]