Fix BOM for UTF-32 codec
commit34d003341c5286354e8277a4cc33182c94549ac0
authorMarius Storm-Olsen <marius@trolltech.com>
Wed, 3 Jun 2009 11:21:21 +0000 (3 13:21 +0200)
committerMarius Storm-Olsen <marius@trolltech.com>
Wed, 3 Jun 2009 11:37:41 +0000 (3 13:37 +0200)
tree2db833aa1ad0e24cf57eb34a2e9320f6f87a7f71
parent259b65c2f5d736dd7f6d81b6390f54464dd5f183
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
src/corelib/codecs/qutfcodec.cpp
tests/auto/qtextcodec/tst_qtextcodec.cpp