diff options
author | Marius Storm-Olsen <marius@trolltech.com> | 2009-06-03 13:21:21 +0200 |
---|---|---|
committer | Marius Storm-Olsen <marius@trolltech.com> | 2009-06-03 13:37:41 +0200 |
commit | 34d003341c5286354e8277a4cc33182c94549ac0 (patch) | |
tree | 2db833aa1ad0e24cf57eb34a2e9320f6f87a7f71 /src | |
parent | 259b65c2f5d736dd7f6d81b6390f54464dd5f183 (diff) | |
download | qt4-tools-34d003341c5286354e8277a4cc33182c94549ac0.tar.gz |
Fix BOM for UTF-32 codec
The BOM was created correctly, but half of the BOM was then overwritten
by the converted data afterwards.
Also made the autotest also do reverse encoding tests where possible.
Task-number: 255095
Reviewed-by: lars
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/codecs/qutfcodec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/codecs/qutfcodec.cpp b/src/corelib/codecs/qutfcodec.cpp index 1ac592e6cc..d9defe17f8 100644 --- a/src/corelib/codecs/qutfcodec.cpp +++ b/src/corelib/codecs/qutfcodec.cpp @@ -478,7 +478,7 @@ QByteArray QUtf32Codec::convertFromUnicode(const QChar *uc, int len, ConverterSt data[2] = 0; data[3] = 0; } - data += 2; + data += 4; } if (endian == BE) { for (int i = 0; i < len; ++i) { |