STINNER Victor <vstin...@python.org> added the comment:

I got the same bug recently and I fixed it:

commit dec39716ca93ee2e8d9b94915ece33014eb58e9e
Author: Victor Stinner <vstin...@python.org>
Date:   Mon Sep 30 14:49:34 2019 +0200

    bpo-38322: Fix gotlandmark() of PC/getpathp.c (GH-16489)
    
    Write the filename into a temporary buffer instead of reusing prefix.
    The problem is that join() modifies prefix inplace. If prefix is not
    normalized, join() can make prefix shorter and so gotlandmark()
    does modify prefix instead of returning it unmodified.

----------
nosy: +vstinner
resolution:  -> fixed
stage: test needed -> resolved
status: open -> closed
superseder:  -> Azure Pipelines: appx tests fail: init_fs_encoding: failed to 
get the Python codec of the filesystem encoding

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31074>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to