Message337987
| Author | janluke |
|---|---|
| Recipients | janluke |
| Date | 2019-03-15.13:19:03 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1552655943.64.0.213784898243.issue36304@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
When bz2 and lzma files are used in writing text mode (wrapped in a TextIOWrapper), the BOM of encodings such as utf-16 and utf-32 is not written. The gzip package works as expected (it writes the BOM). The code that demonstrate this behavior (tested with Python 3.7) is attached here and can also be found on stackoverflow: https://stackoverflow.com/questions/55171439/python-bz2-and-lzma-in-mode-wt-dont-write-the-bom-while-gzip-does-why?noredirect=1#comment97103212_55171439 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-03-15 13:19:03 | janluke | set | recipients: + janluke |
| 2019-03-15 13:19:03 | janluke | set | messageid: <1552655943.64.0.213784898243.issue36304@roundup.psfhosted.org> |
| 2019-03-15 13:19:03 | janluke | link | issue36304 messages |
| 2019-03-15 13:19:03 | janluke | create | |