diff --git a/hgext/convert/gnuarch.py b/hgext/convert/gnuarch.py --- a/hgext/convert/gnuarch.py +++ b/hgext/convert/gnuarch.py @@ -85,7 +85,7 @@ # Get name of temporary directory version = self.treeversion.split('/') - self.tmppath = os.path.join(tempfile.gettempdir(), + self.tmppath = os.path.join(pycompat.fsencode(tempfile.gettempdir()), 'hg-%s' % version[1]) # Generate parents dictionary