VirtualBox

Changeset 84197 in vbox


Ignore:
Timestamp:
May 8, 2020 6:58:38 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137805
Message:

Validation Kit/tdAddGuestCtrl: Decode std[out|err] output to UTF-8 first before printing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r84179 r84197  
    22552255                                else:
    22562256                                    if abBuf:
    2257                                         reporter.log2('Process (PID %d) got %d bytes of %s data' % (iPid, len(abBuf), sFdNm,));
    2258                                         for sLine in abBuf.splitlines():
     2257                                        reporter.log2('Process (PID %d) got %d bytes of %s data (type: %s)'
     2258                                                      % (iPid, len(abBuf), sFdNm, type(abBuf)));
     2259                                        for sLine in abBuf.decode("utf-8").splitlines():
    22592260                                            reporter.log('%s: %s' % (sFdNm, sLine));
    22602261                                        acbFdOut[iFd] += len(abBuf);
Note: See TracChangeset for help on using the changeset viewer.

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