2019-12-16 12:01:38 +01:00
|
|
|
main.py: Running...
|
|
|
|
|
== get_from_buffer ==
|
|
|
|
|
|
2021-09-27 10:46:40 +02:00
|
|
|
buffer='example # H\xe9llo', charset=None: 'example # H\xe9llo'
|
|
|
|
|
buffer='example # H\xeallo', charset='': 'example # H\xeallo'
|
|
|
|
|
buffer='example # H\xebllo', charset='utf-8': TypeError: `charset` must be null when the buffer is Unicode
|
|
|
|
|
buffer=b'example # H\xe9llo', charset=None: 'example # H\xe9llo'
|
|
|
|
|
buffer=b'example # H\xeallo', charset='': 'example # H\xeallo'
|
|
|
|
|
buffer=b'example # H\xebllo', charset='iso-8859-1': 'example # H\xebllo'
|
2019-12-16 12:01:38 +01:00
|
|
|
buffer=b'example # H\xecllo', charset='utf-8': diagnostics:
|
2022-10-19 07:51:41 +00:00
|
|
|
1:1-1:1: Expected 'example', got Termination
|
2024-10-11 09:18:32 +00:00
|
|
|
1:12-1:12: Could not decode source as "utf-8"
|
2019-12-16 12:01:38 +01:00
|
|
|
buffer=b'example # H\xecllo', charset='unknown-charset': diagnostics:
|
|
|
|
|
Unknown charset "unknown-charset"
|
2022-10-19 07:51:41 +00:00
|
|
|
1:1-1:1: Expected 'example', got Termination
|
2021-09-27 10:46:40 +02:00
|
|
|
buffer=b'example # H\xc3\xa9llo', charset='utf-8': 'example # H\xe9llo'
|
|
|
|
|
buffer=b'example # H\xc3\xa9llo', charset=None: 'example # H\xc3\xa9llo'
|
2019-12-16 12:01:38 +01:00
|
|
|
== reparse ==
|
|
|
|
|
|
2021-09-27 10:46:40 +02:00
|
|
|
buffer='example # H\xe9llo', charset=None: 'example # H\xe9llo'
|
|
|
|
|
buffer='example # H\xeallo', charset='': 'example # H\xeallo'
|
|
|
|
|
buffer='example # H\xebllo', charset='utf-8': TypeError: `charset` must be null when the buffer is Unicode
|
|
|
|
|
buffer=b'example # H\xe9llo', charset=None: 'example # H\xe9llo'
|
|
|
|
|
buffer=b'example # H\xeallo', charset='': 'example # H\xeallo'
|
|
|
|
|
buffer=b'example # H\xebllo', charset='iso-8859-1': 'example # H\xebllo'
|
2019-12-16 12:01:38 +01:00
|
|
|
buffer=b'example # H\xecllo', charset='utf-8': diagnostics:
|
2022-10-19 07:51:41 +00:00
|
|
|
1:1-1:1: Expected 'example', got Termination
|
2024-10-11 09:18:32 +00:00
|
|
|
1:12-1:12: Could not decode source as "utf-8"
|
2019-12-16 12:01:38 +01:00
|
|
|
buffer=b'example # H\xecllo', charset='unknown-charset': diagnostics:
|
|
|
|
|
Unknown charset "unknown-charset"
|
2022-10-19 07:51:41 +00:00
|
|
|
1:1-1:1: Expected 'example', got Termination
|
2021-09-27 10:46:40 +02:00
|
|
|
buffer=b'example # H\xc3\xa9llo', charset='utf-8': 'example # H\xe9llo'
|
|
|
|
|
buffer=b'example # H\xc3\xa9llo', charset=None: 'example # H\xc3\xa9llo'
|
2019-12-16 12:01:38 +01:00
|
|
|
main.py: Done.
|
|
|
|
|
Done
|