Details
-
User Story
-
Resolution: Done
-
P2: Important
-
None
-
None
-
21
-
Qt6_Foundation_ Sprint 11, Qt6_Foundation_ Sprint 12
-
cd70242b87add27696cffa446cfec684afba68ab (qt/qt5compat/6.0)
Description
QTextCodec provides support for - primarily - legacy text codecs that have very little relevance on modern systems, where strings are either utf-16 or utf-8.
We can remove text codec support from QtCore, and move respective functionality into a separate module. Requiring application developers that need to consume or produce text data in other encodings to explicitly convert the data using that module, is acceptable; QTextCodec provides the necessary functions to convert to and from QString.
Classes that use QTextCodec in the API, or internally, and that would impacted by such a change are at least (incomplete list)
- QTextStream::setCodec
- QSettings::setIniCodec]
- QXmlStreamReader/Writer::setCodec
- QTextDocument::codecForHtml
- QTextDocumentWriter::setCodec
In addition, several classes in Qt use QTextCodec functionality internally in the implementation, and the documentation refers to QTextCodec in a number of places (which as such is not a problem, but might require a review to ensure that we don't recommend usage of legacy functionality).
The individual text codecs already live in plugins, no need to change anything here.
Attachments
Issue Links
- relates to
-
QTBUG-75991 Remove legacy text codecs from qtbase
- Closed
For Gerrit Dashboard: QTBUG-75665 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
275152,6 | WIP: Move QTextCodec support out of QtCore | dev | qt/qtbase | Status: ABANDONED | -2 | 0 |
275153,3 | WIP: Move QTextCodec support out of QtCore | dev | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
275154,4 | WIP: Move QTextCodec support out of QtCore | dev | qt/qtsvg | Status: ABANDONED | -2 | 0 |
275267,3 | WIP: Move QTextCodec support out of QtCore | dev | qt/qt5 | Status: ABANDONED | -2 | 0 |
275318,2 | WIP: Move QTextCodec support out of QtCore | dev | qt/qtscxml | Status: ABANDONED | -2 | 0 |
276327,3 | WIP: Move QTextCodec support out of QtCore | dev | qt/qtwebsockets | Status: ABANDONED | -2 | 0 |
276328,2 | WIP: Move QTextCodec support out of QtCore | dev | qt/qtconnectivity | Status: ABANDONED | -2 | 0 |
276329,3 | WIP: Move QTextCodec support out of QtCore | dev | qt/qtxmlpatterns | Status: ABANDONED | -2 | 0 |
276438,3 | WIP: Move QTextCodec support out of QtCore | dev | qt/qttools | Status: ABANDONED | -2 | 0 |
276439,2 | WIP: Move QTextCodec support out of QtCore | dev | qt/qtscript | Status: ABANDONED | -2 | 0 |
276440,2 | WIP: Move QTextCodec support out of QtCore | dev | qt/qtquickcontrols2 | Status: ABANDONED | -2 | 0 |
276442,2 | WIP: Move QTextCodec support out of QtCore | dev | qt/qtquickcontrols | Status: ABANDONED | -2 | 0 |
276446,2 | WIP: Move QTextCodec support out of QtCore | dev | qt/qtvirtualkeyboard | Status: ABANDONED | -2 | 0 |
276468,2 | WIP: Move QTextCodec support out of QtCore | dev | qt/qtwebengine | Status: ABANDONED | -2 | 0 |
280210,1 | WIP: Introduce function to detect UTF encoding | 5.15 | qt/qtbase | Status: ABANDONED | -2 | 0 |
280211,2 | WIP: Deprecate QTextCodec | 5.15 | qt/qtbase | Status: ABANDONED | -2 | 0 |
289298,1 | WIP: Add new string converter classes | dev | qt/qtbase | Status: ABANDONED | -2 | 0 |
289299,1 | WIP: Introduce function to detect UTF encoding | dev | qt/qtbase | Status: ABANDONED | -2 | 0 |
304730,10 | Move QTextCodec support out of QtCore | dev | qt/qtbase | Status: MERGED | +2 | 0 |
304783,4 | Port QtQuickControls from QTextCodec to QString{Converter|Decoder} | dev | qt/qtquickcontrols | Status: ABANDONED | +2 | 0 |
304787,4 | Port QtQuickControls2 from QTextCodec to QString{Converter|Decoder} | dev | qt/qtquickcontrols2 | Status: MERGED | +2 | 0 |
304816,2 | Port QtTools from QTextCodec to QStringDecoder | dev | qt/qttools | Status: MERGED | +2 | 0 |
304843,7 | Port QtVirtualKeyboard from QTextCodec to QString{Converter|Decoder|Encoder} | dev | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |
304953,2 | Port QtWebSockets from QTextCodec to QStringDecoder | dev | qt/qtwebsockets | Status: MERGED | +2 | 0 |
304986,19 | Move QTextCodec support into Qt5Compat | dev | qt/qt5compat | Status: MERGED | +2 | 0 |
304991,1 | WIP: Enable QTextCodec build in qt5compat | dev | qt/qt5compat | Status: ABANDONED | -2 | 0 |
305578,3 | Replace QTextCodec with QStringDecoder | dev | qt/qtknx | Status: MERGED | +2 | 0 |