[all-commits] [llvm/llvm-project] f55dc0: [lldb][windows] use Windows APIs to print to the c...

Charles Zablit via All-commits all-commits at lists.llvm.org
Tue Aug 19 06:52:51 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f55dc0824ebcf546b1d34a5102021c15101e4d3b
      https://github.com/llvm/llvm-project/commit/f55dc0824ebcf546b1d34a5102021c15101e4d3b
  Author: Charles Zablit <c_zablit at apple.com>
  Date:   2025-08-19 (Tue, 19 Aug 2025)

  Changed paths:
    M lldb/include/lldb/Host/File.h
    M lldb/source/Host/common/File.cpp

  Log Message:
  -----------
  [lldb][windows] use Windows APIs to print to the console (#149493)

This patch uses the Windows APIs to print to the Windows Console,
through `llvm::raw_fd_ostream`.

This fixes a rendering issue where the characters defined in
`DiagnosticsRendering.cpp` (`"╰"` for instance) are not rendered
properly on Windows out of the box, because the default codepage is not
`utf-8`.

This solution is based on [this patch
downstream](https://github.com/swiftlang/swift/pull/40632/files#diff-e948e4bd7a601e3ca82d596058ccb39326459a4751470eec4d393adeaf516977R37-R38).

rdar://156064500



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list