[issue28321] Plistlib: Half of the double width characters are missing when writing binary plist

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1109

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28321] Plistlib: Half of the double width characters are missing when writing binary plist

2016-10-04 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> commit review
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28321] Plistlib: Half of the double width characters are missing when writing binary plist

2016-10-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 381ef0f08f89 by Serhiy Storchaka in branch '3.5':
Issue #28321: Fixed writing non-BMP characters with binary format in plistlib.
https://hg.python.org/cpython/rev/381ef0f08f89

New changeset 3a7234d04fe9 by Serhiy Storchaka in branch '3.6':
Issue #28321: Fixed writing non-BMP characters with binary format in plistlib.
https://hg.python.org/cpython/rev/3a7234d04fe9

New changeset b6c85e7e558a by Serhiy Storchaka in branch 'default':
Issue #28321: Fixed writing non-BMP characters with binary format in plistlib.
https://hg.python.org/cpython/rev/b6c85e7e558a

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28321] Plistlib: Half of the double width characters are missing when writing binary plist

2016-10-04 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka
versions:  -Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28321] Plistlib: Half of the double width characters are missing when writing binary plist

2016-10-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The simplest reproducer:

>>> import plistlib
>>> plistlib.loads(plistlib.dumps('\U0001f40d', fmt=plistlib.FMT_BINARY))
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.5/plistlib.py", line 1006, in loads
fp, fmt=fmt, use_builtin_types=use_builtin_types, dict_type=dict_type)
  File "/usr/lib/python3.5/plistlib.py", line 997, in load
return p.parse(fp)
  File "/usr/lib/python3.5/plistlib.py", line 623, in parse
return self._read_object(self._object_offsets[top_object])
  File "/usr/lib/python3.5/plistlib.py", line 704, in _read_object
return self._fp.read(s * 2).decode('utf-16be')
  File "/usr/lib/python3.5/encodings/utf_16_be.py", line 16, in decode
return codecs.utf_16_be_decode(input, errors, True)
UnicodeDecodeError: 'utf-16-be' codec can't decode bytes in position 0-1: 
unexpected end of data

Proposed patch fixes this issue.

--
keywords: +patch
nosy: +ronaldoussoren, serhiy.storchaka
stage:  -> patch review
versions: +Python 2.7, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file44901/plistlib-astral-characters.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28321] Plistlib: Half of the double width characters are missing when writing binary plist

2016-09-30 Thread kuglee

New submission from kuglee:

I read an emoji character from a plist file. The emoji printed correctly to 
stdout. However when I dump the file to a binary plist only the half of the 
emoji was present.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28321] Plistlib: Half of the double width characters are missing when writing binary plist

2016-09-30 Thread kuglee

Changes by kuglee :


--
components: Library (Lib)
files: input.plist
nosy: kuglee
priority: normal
severity: normal
status: open
title: Plistlib: Half of the double width characters are missing when writing 
binary plist
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file44897/input.plist

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28321] Plistlib: Half of the double width characters are missing when writing binary plist

2016-09-30 Thread kuglee

Changes by kuglee :


Added file: http://bugs.python.org/file44898/output.plist

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com