mirror of
https://github.com/andrewferrier/email2pdf.git
synced 2025-03-18 05:52:59 +00:00
Output preferred system encoding.
This commit is contained in:
parent
8af0a3fb44
commit
fa03d4c65e
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@ from sys import platform as _platform
|
|||
import argparse
|
||||
import email
|
||||
import functools
|
||||
import locale
|
||||
import logging
|
||||
import logging.handlers
|
||||
import magic
|
||||
|
@ -191,6 +192,10 @@ def handle_args(argv):
|
|||
|
||||
|
||||
def get_input_data(args):
|
||||
logger = logging.getLogger("email2pdf")
|
||||
|
||||
logger.debug("System preferred encoding is: " + locale.getpreferredencoding())
|
||||
|
||||
if args.inputFile.strip() == "-":
|
||||
data = ""
|
||||
for line in sys.stdin:
|
||||
|
|
Loading…
Reference in a new issue