mirror of https://github.com/python/cpython
gh-123994: Generate utf-16 file using little endian and BOM. (#123995)
This commit is contained in:
parent
a362c41bc9
commit
3ea51fa2e3
|
@ -145,7 +145,7 @@ fixtures = dict(
|
||||||
data01={
|
data01={
|
||||||
'__init__.py': '',
|
'__init__.py': '',
|
||||||
'binary.file': bytes(range(4)),
|
'binary.file': bytes(range(4)),
|
||||||
'utf-16.file': 'Hello, UTF-16 world!\n'.encode('utf-16'),
|
'utf-16.file': '\ufeffHello, UTF-16 world!\n'.encode('utf-16-le'),
|
||||||
'utf-8.file': 'Hello, UTF-8 world!\n'.encode('utf-8'),
|
'utf-8.file': 'Hello, UTF-8 world!\n'.encode('utf-8'),
|
||||||
'subdirectory': {
|
'subdirectory': {
|
||||||
'__init__.py': '',
|
'__init__.py': '',
|
||||||
|
@ -160,7 +160,7 @@ fixtures = dict(
|
||||||
},
|
},
|
||||||
namespacedata01={
|
namespacedata01={
|
||||||
'binary.file': bytes(range(4)),
|
'binary.file': bytes(range(4)),
|
||||||
'utf-16.file': 'Hello, UTF-16 world!\n'.encode('utf-16'),
|
'utf-16.file': '\ufeffHello, UTF-16 world!\n'.encode('utf-16-le'),
|
||||||
'utf-8.file': 'Hello, UTF-8 world!\n'.encode('utf-8'),
|
'utf-8.file': 'Hello, UTF-8 world!\n'.encode('utf-8'),
|
||||||
'subdirectory': {
|
'subdirectory': {
|
||||||
'binary.file': bytes(range(12, 16)),
|
'binary.file': bytes(range(12, 16)),
|
||||||
|
|
Loading…
Reference in New Issue