[all-commits] [llvm/llvm-project] b3b517: [lldb] Explicitly open file to write with utf-8 en...

Augusto Noronha via All-commits all-commits at lists.llvm.org
Fri Oct 28 15:06:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3b517d572391d9799d1f29bddd66e2bad1acb54
      https://github.com/llvm/llvm-project/commit/b3b517d572391d9799d1f29bddd66e2bad1acb54
  Author: Augusto Noronha <augusto2112 at me.com>
  Date:   2022-10-28 (Fri, 28 Oct 2022)

  Changed paths:
    M lldb/examples/python/crashlog.py

  Log Message:
  -----------
  [lldb] Explicitly open file to write with utf-8 encoding in crashlog.py

The python "open" function will use the default encoding for the
locale (the result of "locale.getpreferredencoding()"). Explicitly set
the locale to utf-8 when opening the crashlog for writing, as there may
be non-ascii symbols in there (for example, Swift uses "τ" to indicate
generic parameters).

rdar://101402755

Differential Revision: https://reviews.llvm.org/D136798




More information about the All-commits mailing list