Activity log for bug #1654840

Date Who What changed Old value New value Message
2017-01-08 12:07:13 Dmitry Shachnev bug added bug
2017-01-08 12:07:25 Dmitry Shachnev nominated for series Ubuntu Trusty
2017-01-08 12:07:25 Dmitry Shachnev bug task added pyqt5 (Ubuntu Trusty)
2017-01-25 13:08:48 Robie Basak pyqt5 (Ubuntu Trusty): status New Fix Committed
2017-01-25 13:08:50 Robie Basak bug added subscriber Ubuntu Stable Release Updates Team
2017-01-25 13:08:51 Robie Basak bug added subscriber SRU Verification
2017-01-25 13:08:54 Robie Basak tags trusty trusty verification-needed
2017-01-25 13:11:38 Robie Basak description # Test Case $ python3 >>> from PyQt5.QtGui import QTextDocument >>> d = QTextDocument() >>> d.setPlainText('÷ Σ') >>> d.toPlainText() '÷ £' This should not happen. d.toPlainText() should return '÷ Σ'. # Impact The bug was initially reported upstream: https://www.riverbankcomputing.com/pipermail/pyqt/2015-March/035627.html. Some time ago I got the same issue in ReText CI, which uses Ubuntu Trusty. The test failure was observed at https://travis-ci.org/retext-project/retext/builds/186945524. With the proposed upload, the failure disappears. This can also affect other editors which allow to input unicode, like eric. # Proposed Fix The fix which I am uploading to -proposed is taken from this upstream changeset: 2014-04-15 Phil Thompson <phil@riverbankcomputing.com> * qpy/QtCore/qpycore_qstring.cpp: Fixed a bug in the conversion of QStrings with surrogate pairs. [16a9c19d08cf] <5.2-maint> It is present in all releases since v5.3. # Regression Potential The patch is small, should not introduce any regressions. # Test Case $ python3 >>> from PyQt5.QtGui import QTextDocument >>> d = QTextDocument() >>> d.setPlainText('÷ Σ') >>> d.toPlainText() '÷ £' This should not happen. d.toPlainText() should return '÷ Σ'. # Impact The bug was initially reported upstream: https://www.riverbankcomputing.com/pipermail/pyqt/2015-March/035627.html. Some time ago I got the same issue in ReText CI, which uses Ubuntu Trusty. The test failure was observed at https://travis-ci.org/retext-project/retext/builds/186945524. With the proposed upload, the failure disappears. This can also affect other editors which allow to input unicode, like eric. # Proposed Fix The fix which I am uploading to -proposed is taken from this upstream changeset: 2014-04-15 Phil Thompson <phil@riverbankcomputing.com>     * qpy/QtCore/qpycore_qstring.cpp:     Fixed a bug in the conversion of QStrings with surrogate pairs.     [16a9c19d08cf] <5.2-maint> It is present in all releases since v5.3. # Regression Potential The patch is small, should not introduce any regressions. If there is a regression, it is likely to be in the area that converts QStrings to Python Unicode objects, with the edge cases being different length strings between ASCII, 16-bit code points and code points that require surrogate pairs.
2017-02-07 19:51:39 Dmitry Shachnev tags trusty verification-needed trusty verification-done
2017-02-07 22:12:50 Launchpad Janitor pyqt5 (Ubuntu Trusty): status Fix Committed Fix Released
2017-02-07 22:13:00 Brian Murray removed subscriber Ubuntu Stable Release Updates Team