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
Oswald Buddenhagen 2013-03-06 11:00:27 +01:00 committed by The Qt Project
parent 6c22b9b3e8
commit 5df9a95d2c
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}