Sorry for the delay.
# dpkg-query -W -f '${Version}\n' python3-pyqt5 5.2.1+dfsg-1ubuntu2 # LC_ALL=C.UTF-8 python3 Python 3.4.3 (default, Nov 17 2016, 01:08:31) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt5.QtGui import QTextDocument >>> d = QTextDocument() >>> tests = ['', '÷ Σ', '÷ ф', 'Σ', '÷ $', '÷ €', '÷ \U00010437', '÷ \U00024B62', 'ascii', '€' * 1025, 'ちりぬるを', 'ᐊᓕᒍᖅ', 'ฉันกินกระจกได้'] >>> for string in tests: ... d.setPlainText(string) ... assert d.toPlainText() == string >>> # all asserts passed
Sorry for the delay.
# dpkg-query -W -f '${Version}\n' python3-pyqt5 string)
5.2.1+dfsg-1ubuntu2
# LC_ALL=C.UTF-8 python3
Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5.QtGui import QTextDocument
>>> d = QTextDocument()
>>> tests = ['', '÷ Σ', '÷ ф', 'Σ', '÷ $', '÷ €', '÷ \U00010437', '÷ \U00024B62', 'ascii', '€' * 1025, 'ちりぬるを', 'ᐊᓕᒍᖅ', 'ฉันกินกระจกได้']
>>> for string in tests:
... d.setPlainText(
... assert d.toPlainText() == string
>>> # all asserts passed