On Python 3, filesystem paths and sys.argv should use os.fsencode/os.fsdecode for encoding #3720

Open
opened 2021-05-24 14:04:14 +00:00 by itamarst · 1 comment

Unicode filesystem paths and sys.argv should be encoded/decoded with os.fsencode/os.fsdecode in places where we have to do this explicitly on Python 3.

Not clear whether this is actually necessary, but worth noting.

Unicode filesystem paths and `sys.argv` should be encoded/decoded with `os.fsencode`/`os.fsdecode` in places where we have to do this explicitly on Python 3. Not clear whether this is actually necessary, but worth noting.
itamarst added the
unknown
normal
task
n/a
labels 2021-05-24 14:04:14 +00:00
itamarst added this to the Support Python 3 milestone 2021-05-24 14:04:14 +00:00
itamarst changed title from On Python 3, filesystem paths should use os.fsencode/os.fsdecode for encoding to On Python 3, filesystem paths and sys.argv should use os.fsencode/os.fsdecode for encoding 2021-05-24 14:04:39 +00:00
Author

Ticket retargeted after milestone closed

Ticket retargeted after milestone closed
itamarst removed this from the Support Python 3 milestone 2023-09-05 14:20:22 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#3720
No description provided.