mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
print actual the <class>::<method> info from QIcuCodec::codecForText() warnings
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
55448935e8
commit
5e5fa00b87
1 changed files with 4 additions and 4 deletions
|
@ -974,14 +974,14 @@ QTextCodec *QIcuCodec::codecForText(const QByteArray &text, QTextCodec *defaultC
|
|||
UErrorCode error = U_ZERO_ERROR;
|
||||
UCharsetDetector *detector = ucsdet_open(&error);
|
||||
if (Q_UNLIKELY(U_FAILURE(error))) {
|
||||
qWarning("QTextCodec::codecForUtfText: ucsdet_open() failed %s", u_errorName(error));
|
||||
qWarning("QIcuCodec::codecForText: ucsdet_open() failed %s", u_errorName(error));
|
||||
return defaultCodec;
|
||||
}
|
||||
|
||||
error = U_ZERO_ERROR;
|
||||
ucsdet_setText(detector, text.constData(), text.size(), &error);
|
||||
if (Q_UNLIKELY(U_FAILURE(error))) {
|
||||
qWarning("QTextCodec::codecForUtfText: ucsdet_setText() failed %s", u_errorName(error));
|
||||
qWarning("QIcuCodec::codecForText: ucsdet_setText() failed %s", u_errorName(error));
|
||||
ucsdet_close(detector);
|
||||
return defaultCodec;
|
||||
}
|
||||
|
@ -989,7 +989,7 @@ QTextCodec *QIcuCodec::codecForText(const QByteArray &text, QTextCodec *defaultC
|
|||
error = U_ZERO_ERROR;
|
||||
const UCharsetMatch *match = ucsdet_detect(detector, &error);
|
||||
if (Q_UNLIKELY(U_FAILURE(error))) {
|
||||
qWarning("QTextCodec::codecForUtfText: ucsdet_detect() failed %s", u_errorName(error));
|
||||
qWarning("QIcuCodec::codecForText: ucsdet_detect() failed %s", u_errorName(error));
|
||||
ucsdet_close(detector);
|
||||
return defaultCodec;
|
||||
}
|
||||
|
@ -997,7 +997,7 @@ QTextCodec *QIcuCodec::codecForText(const QByteArray &text, QTextCodec *defaultC
|
|||
error = U_ZERO_ERROR;
|
||||
const char *name = ucsdet_getName(match, &error);
|
||||
if (Q_UNLIKELY(U_FAILURE(error))) {
|
||||
qWarning("QTextCodec::codecForUtfText: ucsdet_getName() failed %s", u_errorName(error));
|
||||
qWarning("QIcuCodec::codecForText: ucsdet_getName() failed %s", u_errorName(error));
|
||||
ucsdet_close(detector);
|
||||
return defaultCodec;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue