We could fix it in that direction due to PyUnicode_DecodeLocale, but there's nothing we can do for encoding Python strings to the system's locale without a memory leak, so it does not make a lot of sense to support only one direction.
We could fix it in that direction due to PyUnicode_ DecodeLocale, but there's nothing we can do for encoding Python strings to the system's locale without a memory leak, so it does not make a lot of sense to support only one direction.