diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-02-06 00:44:03 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-07 15:00:39 +0100 |
commit | 704c4d0e107969cbfde7ba35a1a3f332a2268773 (patch) | |
tree | be591794c4233a765d340312a8b81c1ac0cf534d /mkspecs/winphone-x86-msvc2012/qmake.conf | |
parent | bcd1b7fe8ee0ab83f7838172c287557c94711602 (diff) |
QUtfCodec: don't encode invalid UCS-4 codepoints
The code didn't check for malformed surrogate pairs. That means that
- high surrogates followed by *anything* were decoded as they formed
a valid surrogate pair;
- stray low surrogates were returned as-is.
We can't return surrogate values in UCS-4, so properly detect these
cases and return U+FFFD instead.
[ChangeLog][QtCore][QTextCodec] Encoding a QString in UTF-32 will now
replace malformed UTF-16 subsequences in the string with the Unicode
replacement character (U+FFFD).
Change-Id: I5cd771d6aa21ffeff4dd9d9e5a7961cf692dc457
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'mkspecs/winphone-x86-msvc2012/qmake.conf')
0 files changed, 0 insertions, 0 deletions