[PATCH] D61137: Fix llvm-objcopy/ELF/preserve-segment-contents test under Python 3.6

Alexandre Ganea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 06:05:40 PDT 2019


aganea added a comment.

Yes the encoding is different. By running https://gist.github.com/zed/5898423 I get:

     Windows 10 cmd shell:                    WSL:
  locale(False):     cp1252             locale(False):     UTF-8
  device(stdout):    cp850              device(stdout):    UTF-8
  stdout.encoding:   utf-8              stdout.encoding:   UTF-8
  device(stderr):    cp850              device(stderr):    UTF-8
  stderr.encoding:   utf-8              stderr.encoding:   UTF-8
  device(stdin):     cp850              device(stdin):     UTF-8
  stdin.encoding:    utf-8              stdin.encoding:    UTF-8

I've checked clang/llvm/lld/lldb, this seems to be the only place where raw bytes are encoded in python.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61137/new/

https://reviews.llvm.org/D61137





More information about the llvm-commits mailing list