Skip to content

Commit

Permalink
always use utf-8 encoding instead of locale.getpreferredencoding() (n…
Browse files Browse the repository at this point in the history
  • Loading branch information
roxma authored and justinmk committed Oct 23, 2017
1 parent af7da9c commit a703b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neovim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def setup_logging(name):
prefix = os.environ['NVIM_PYTHON_LOG_FILE'].strip()
major_version = sys.version_info[0]
logfile = '{}_py{}_{}'.format(prefix, major_version, name)
handler = logging.FileHandler(logfile, 'w')
handler = logging.FileHandler(logfile, 'w', 'utf-8')
handler.formatter = logging.Formatter(
'%(asctime)s [%(levelname)s @ '
'%(filename)s:%(funcName)s:%(lineno)s] %(process)s - %(message)s')
Expand Down

0 comments on commit a703b47

Please sign in to comment.