Skip to content

Commit a703b47

Browse files
roxmajustinmk
authored andcommitted
always use utf-8 encoding instead of locale.getpreferredencoding() (#276)
1 parent af7da9c commit a703b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neovim/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def setup_logging(name):
119119
prefix = os.environ['NVIM_PYTHON_LOG_FILE'].strip()
120120
major_version = sys.version_info[0]
121121
logfile = '{}_py{}_{}'.format(prefix, major_version, name)
122-
handler = logging.FileHandler(logfile, 'w')
122+
handler = logging.FileHandler(logfile, 'w', 'utf-8')
123123
handler.formatter = logging.Formatter(
124124
'%(asctime)s [%(levelname)s @ '
125125
'%(filename)s:%(funcName)s:%(lineno)s] %(process)s - %(message)s')

0 commit comments

Comments
 (0)