JDevlieghere added a comment.

Lit's `to_string` will just return the string when it's a `str` instance, which 
in Python can still contain UTF-8 characters:

  >>> foo = "😀"
  >>> isinstance(foo, str)
  True
  >>> foo.encode('utf-8')
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 0: 
ordinal not in range(128)


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

https://reviews.llvm.org/D76955



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to