[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2019-08-23 Thread Vidar Fauske
Vidar Fauske added the comment: Note that this is still an issue on Windows: >>> import locale >>> locale.getdefaultlocale() ('en_US', 'cp1252') >>> locale.setlocale(locale.getdefaultlocale()) Error: unsupported locale setting -- comp

[issue26024] Non-ascii Windows locale names

2019-08-23 Thread Vidar Fauske
Vidar Fauske added the comment: Thanks. Note that the failing with ` locale.setlocale(locale.LC_ALL, locale.getdefaultlocale())` I mentioned above is a different problem, that is tracked in a much older issue: https://bugs.python.org/issue10466

[issue26660] tempfile.TemporaryDirectory() cleanup exception if nonwriteable or non-searchable files or directories created

2020-03-12 Thread Vidar Fauske
Vidar Fauske added the comment: Seems as if this was resolved by the linked PR in 3.8, or am I missing something? -- nosy: +vidartf ___ Python tracker <https://bugs.python.org/issue26

[issue35144] TemporaryDirectory clean-up fails with unsearchable directories

2020-09-22 Thread Vidar Fauske
Vidar Fauske added the comment: On Python 3.8.5 on Windows using the code from the above patch I recently got a stack overflow: Thread 0x2054 (most recent call first): File "...\lib\concurrent\futures\thread.py", line 78 in _worker File "...\lib\threading.py", li

[issue35144] TemporaryDirectory clean-up fails with unsearchable directories

2020-09-22 Thread Vidar Fauske
Vidar Fauske added the comment: A somewhat easy repro: Create the temporary directory, add a subdir (not sure if subdir truly necessary at this point), use `os.chdir()` to set the cwd to that subdir. Clean up the temp dir. The cwd should prevent the deletion because it will be "in

[issue31226] shutil.rmtree fails when target has an internal directory junction (Windows)

2019-08-08 Thread Vidar Fauske
Vidar Fauske added the comment: Thanks for the detailed explanation Eryk. While it is a little annoying that it comes 2 years after the initial proposed solution, I'll happily take that if the end result is a better fix :) That being said, this fix seems quite a bit more involv

[issue31226] shutil.rmtree fails when target has an internal directory junction (Windows)

2017-08-17 Thread Vidar Fauske
New submission from Vidar Fauske: On Windows (Windows 10 in my case), given the following directory structure: - rootfolder - a - b - junc (directory junction to ../a) a call to `shutil.rmtree('root')` will fail with an exception `FileNotFoundError: [WinError 3]`, in a call to `

[issue31512] Add non-elevated symlink support for dev mode Windows 10

2017-09-18 Thread Vidar Fauske
New submission from Vidar Fauske: As explained in this Microsoft blogpost (https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/), it is possible on newer versions of Windows 10 for non-privileged users to create symlinks when the machine is in developer mode. However, to

[issue31512] Add non-elevated symlink support for dev mode Windows 10

2017-09-19 Thread Vidar Fauske
Changes by Vidar Fauske : -- pull_requests: +3645 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31512> ___ ___ Python-bugs-list mai

[issue31512] Add non-elevated symlink support for dev mode Windows 10

2017-09-21 Thread Vidar Fauske
Vidar Fauske added the comment: Thanks for the informative comments. I opened a PR based on this feedback. Would you mind checking if it conforms to what you had in mind? -- ___ Python tracker <https://bugs.python.org/issue31

[issue31512] Add non-elevated symlink support for dev mode Windows 10

2018-11-23 Thread Vidar Fauske
Vidar Fauske added the comment: The PR has been sitting for a while now with all previous concerns addressed. There has been a few pings on the PR without anything new happening, so I thought I would ping this issue as well: are there any other concerns about this PR, or anything else that

[issue31512] Add non-elevated symlink support for dev mode Windows 10

2018-11-27 Thread Vidar Fauske
Vidar Fauske added the comment: Thanks! I addressed the comment, so hopefully this should be OK now. -- ___ Python tracker <https://bugs.python.org/issue31

[issue26024] Non-ascii Windows locale names

2019-02-11 Thread Vidar Fauske
Vidar Fauske added the comment: This issue can still be triggered for Python 3.7 by the following line (running on a Windows machine with a Norwegian locale as default): locale.setlocale(locale.LC_ALL, locale.getdefaultlocale()) -- versions: +Python 3.7

[issue31226] shutil.rmtree fails when target has an internal directory junction (Windows)

2019-04-10 Thread Vidar Fauske
Vidar Fauske added the comment: I think the submitted PR could need a pair of eyes now. I've sorted the merge conflicts, and addressed the previous review points by eryksun. -- ___ Python tracker <https://bugs.python.org/is

[issue31226] shutil.rmtree fails when target has an internal directory junction (Windows)

2018-04-13 Thread Vidar Fauske
Vidar Fauske added the comment: A PR that fixes the issue according to the feedback from Eryk Sun is available. It does seem to have stranded a bit on the review side. That being said, would a bugfix for shutil.rmtree be appropriate? It is very annoying when junction points made by other

[issue26024] Non-ascii Windows locale names

2016-01-06 Thread Vidar Fauske
New submission from Vidar Fauske: The Norwegian locale on Windows has the honor of having the only locale name with a non-ASCII character ('Norwegian Bokmål_Norway', see e.g. https://wiki.postgresql.org/wiki/Changes_To_Norwegian_Locale). It does not seem like python 3 is able to h

[issue31226] shutil.rmtree fails when target has an internal directory junction (Windows)

2018-03-05 Thread Vidar Fauske via Python-bugs-list
Change by Vidar Fauske : -- keywords: +patch pull_requests: +5764 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issu