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,6 +73,7 @@ except ImportError: | ||
| 73 | from oletools.ppt_record_parser import (is_ppt, PptFile, | 73 | from oletools.ppt_record_parser import (is_ppt, PptFile, |
| 74 | PptRecordExOleVbaActiveXAtom) | 74 | PptRecordExOleVbaActiveXAtom) |
| 75 | from oletools.ooxml import XmlParser | 75 | from oletools.ooxml import XmlParser |
| 76 | +from oletools.common import ensure_stdout_handles_unicode | ||
| 76 | 77 | ||
| 77 | # ----------------------------------------------------------------------------- | 78 | # ----------------------------------------------------------------------------- |
| 78 | # CHANGELOG: | 79 | # CHANGELOG: |
| @@ -848,6 +849,7 @@ def main(cmd_line_args=None): | @@ -848,6 +849,7 @@ def main(cmd_line_args=None): | ||
| 848 | provide other arguments. | 849 | provide other arguments. |
| 849 | """ | 850 | """ |
| 850 | # print banner with version | 851 | # print banner with version |
| 852 | + ensure_stdout_handles_unicode() | ||
| 851 | print('oleobj %s - http://decalage.info/oletools' % __version__) | 853 | print('oleobj %s - http://decalage.info/oletools' % __version__) |
| 852 | print('THIS IS WORK IN PROGRESS - Check updates regularly!') | 854 | print('THIS IS WORK IN PROGRESS - Check updates regularly!') |
| 853 | print('Please report any issue at ' | 855 | print('Please report any issue at ' |