don't clobber 8-bit output
otherwise it becomes useless for utf-8. the output is encoded as local8bit, so it shouldn't be garbage. Change-Id: I68e59bddb092ac53746f421a90e3803632dbf1c6 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
6c22b9b3e8
commit
5df9a95d2c
|
|
@ -82,9 +82,9 @@ QAbstractTestLogger::~QAbstractTestLogger()
|
|||
|
||||
void QAbstractTestLogger::filterUnprintable(char *str) const
|
||||
{
|
||||
char *idx = str;
|
||||
unsigned char *idx = reinterpret_cast<unsigned char *>(str);
|
||||
while (*idx) {
|
||||
if (((*idx < 0x20 && *idx != '\n' && *idx != '\t') || *idx > 0x7e))
|
||||
if (((*idx < 0x20 && *idx != '\n' && *idx != '\t') || *idx == 0x7f))
|
||||
*idx = '?';
|
||||
++idx;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue