Martin [gz] says:
- str(traceback) is bytes
in those bytes [here]:
- filenames are in mbcs
- code lines are in the encoding of the file that the source is from
- and the bytes for the error are in the encoding of the error - e.g. totally arbitrary.
We have to defend against three sets of different encodings.
Robert Collins wrote 20 hours ago: #2
Looks like we need to port a copy of the underlying things, and get the encoding etc sorted out in the root data.
From the duplicate:
Martin [gz] says:
- str(traceback) is bytes
in those bytes [here]:
- filenames are in mbcs
- code lines are in the encoding of the file that the source is from
- and the bytes for the error are in the encoding of the error - e.g. totally arbitrary.
We have to defend against three sets of different encodings.
Robert Collins wrote 20 hours ago: #2
Looks like we need to port a copy of the underlying things, and get the encoding etc sorted out in the root data.