Skip to content

Instantly share code, notes, and snippets.

@agronholm
Created March 11, 2024 19:16
Show Gist options
  • Save agronholm/90306177a8d333d6f872baf8b5083d50 to your computer and use it in GitHub Desktop.
Save agronholm/90306177a8d333d6f872baf8b5083d50 to your computer and use it in GitHub Desktop.
PyPy filename encoding bug MWE
from pathlib import Path
path = Path("MARKER-ö.txt")
path.touch()
path2 = next(p for p in Path.cwd().iterdir() if p.name.startswith("MARKER-"))
path2.chmod(0o777)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment