Fix invalid characters count in QBig5hkscsCodec::convertFromUnicode()
Change-Id: I3b06361f93e7ab6a3336b2c432e0a163a34ccb43 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
This commit is contained in:
parent
ea47d152b3
commit
2c1d597b65
@ -1913,6 +1913,7 @@ QByteArray QBig5hkscsCodec::convertFromUnicode(const QChar *uc, int len, Convert
|
||||
} else {
|
||||
// Error
|
||||
*cursor++ = replacement;
|
||||
++invalid;
|
||||
}
|
||||
}
|
||||
rstr.resize(cursor - (uchar*)rstr.constData());
|
||||
|
Loading…
Reference in New Issue
Block a user