VirtualBox

Changeset 90772 in vbox


Ignore:
Timestamp:
Aug 21, 2021 6:17:37 AM (3 years ago)
Author:
vboxsync
Message:

Audio/ValKit: tdAudioTest.py: Always decode process output as UTF-8. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py

    r90754 r90772  
    230230        if oProcess:
    231231            for line in iter(oProcess.stdout.readline, b''):
    232                 reporter.log('[' + sWhat + '] ' + line.decode(sys.stdin.encoding));
     232                reporter.log('[' + sWhat + '] ' + line.decode('utf-8'));
    233233            iExitCode = oProcess.poll();
    234234            if iExitCode:
     
    282282            if err:
    283283                reporter.log2('PS stderr:');
    284                 for sLine in err.decode("utf-8").splitlines():
     284                for sLine in err.decode('utf-8').splitlines():
    285285                    reporter.log2(sLine);
    286286            if out:
    287287                reporter.log2('PS stdout:');
    288                 for sLine in out.decode("utf-8").splitlines():
     288                for sLine in out.decode('utf-8').splitlines():
    289289                    reporter.log2(sLine);
    290290                    if sProcName in sLine:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette