Skip to content

Commit

Permalink
Merge pull request #131 from vit-tucek/unicode_home_dirs
Browse files Browse the repository at this point in the history
 properly handle unicode characters in home dirs
  • Loading branch information
minrk authored Sep 19, 2019
2 parents 3a344f7 + 10196a3 commit 340b63a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jupyter_core/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import stat
import errno
import tempfile
from ipython_genutils import py3compat

from contextlib import contextmanager
from ipython_genutils import py3compat
Expand All @@ -31,6 +32,7 @@ def get_home_dir():
# Next line will make things work even when /home/ is a symlink to
# /usr/home as it is on FreeBSD, for example
homedir = os.path.realpath(homedir)
homedir = py3compat.str_to_unicode(homedir, encoding=sys.getfilesystemencoding())
return homedir

_dtemps = {}
Expand Down

0 comments on commit 340b63a

Please sign in to comment.