[all-commits] [llvm/llvm-project] c806d8: [clang-format] Explicitly open DOC_FILE with utf-8...

rmarker via All-commits all-commits at lists.llvm.org
Tue Jan 30 17:29:59 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c806d8c7e948f01405be4ea344d883f066f8ae59
      https://github.com/llvm/llvm-project/commit/c806d8c7e948f01405be4ea344d883f066f8ae59
  Author: rmarker <37921131+rmarker at users.noreply.github.com>
  Date:   2024-01-30 (Tue, 30 Jan 2024)

  Changed paths:
    M clang/docs/tools/dump_format_style.py

  Log Message:
  -----------
  [clang-format] Explicitly open DOC_FILE with utf-8 in dump_format_style.py (#79805)

The dump_format_style.py script generates the clang-format style options
documentation.
There was an issue where the script could include spurious characters in
the output when run in windows. It appears that it wasn't defaulting to
the correct encoding when reading the input.
This has been addressed by explicitly setting the encoding when opening
the file.




More information about the All-commits mailing list