GH-110109: pathlib ABCs: drop use of `io.text_encoding()` (#113417)
Do not use the locale-specific default encoding in `PathBase.read_text()` and `write_text()`. Locale settings shouldn't influence the operation of these base classes, which are intended mostly for implementing rich paths on *nonlocal* filesystems.
B
Barney Gale committed
f8b6e171ad79bf3e57e39ebc0d96ad097a310cbf
Parent: 712afab
Committed by GitHub <noreply@github.com>
on 12/27/2023, 3:32:35 PM