Commit 6de903eb397d3924f2ddb8b714f507409ad5ff87
1 parent
a972bb39
oleobj: ensure stdout can handle unicode
Showing
1 changed file
with
2 additions
and
0 deletions
oletools/oleobj.py
| ... | ... | @@ -73,6 +73,7 @@ except ImportError: |
| 73 | 73 | from oletools.ppt_record_parser import (is_ppt, PptFile, |
| 74 | 74 | PptRecordExOleVbaActiveXAtom) |
| 75 | 75 | from oletools.ooxml import XmlParser |
| 76 | +from oletools.common import ensure_stdout_handles_unicode | |
| 76 | 77 | |
| 77 | 78 | # ----------------------------------------------------------------------------- |
| 78 | 79 | # CHANGELOG: |
| ... | ... | @@ -848,6 +849,7 @@ def main(cmd_line_args=None): |
| 848 | 849 | provide other arguments. |
| 849 | 850 | """ |
| 850 | 851 | # print banner with version |
| 852 | + ensure_stdout_handles_unicode() | |
| 851 | 853 | print('oleobj %s - http://decalage.info/oletools' % __version__) |
| 852 | 854 | print('THIS IS WORK IN PROGRESS - Check updates regularly!') |
| 853 | 855 | print('Please report any issue at ' | ... | ... |