Commit 34fae67
Omit the XML declaration for utf-8-sig, and add tests and NEWS
Normalize the declared encoding before deciding whether to write the
declaration, so that utf-8-sig is treated as utf-8: the BOM already
determines the encoding.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 2916e19 commit 34fae67
3 files changed
Lines changed: 8 additions & 2 deletions
File tree
- Lib
- test
- xml/etree
- Misc/NEWS.d/next/Library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
| 936 | + | |
936 | 937 | | |
937 | 938 | | |
938 | 939 | | |
939 | 940 | | |
940 | 941 | | |
941 | 942 | | |
942 | 943 | | |
| 944 | + | |
943 | 945 | | |
944 | 946 | | |
945 | 947 | | |
| |||
952 | 954 | | |
953 | 955 | | |
954 | 956 | | |
| 957 | + | |
| 958 | + | |
955 | 959 | | |
956 | 960 | | |
957 | 961 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| 735 | + | |
| 736 | + | |
735 | 737 | | |
736 | 738 | | |
737 | 739 | | |
738 | 740 | | |
739 | | - | |
740 | | - | |
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments