Commit 32b7bcf
authored
pythongh-93103: Py_DecodeLocale() uses _PyRuntime.preconfig (python#93187)
The Py_DecodeLocale() and Py_EncodeLocale() now use
_PyRuntime.preconfig, rather than Py_UTF8Mode and
Py_LegacyWindowsFSEncodingFlag global configuration varibles, to
decide if the UTF-8 encoding is used or not.
As documented, these functions must not be called before Python is
preinitialized. The new PyConfig API should now be used, rather than
using deprecated functions like Py_SetPath() or PySys_SetArgv().1 parent c7667a2 commit 32b7bcf
2 files changed
+14
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
606 | | - | |
| 606 | + | |
607 | 607 | | |
608 | | - | |
| 608 | + | |
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| |||
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
798 | | - | |
| 798 | + | |
799 | 799 | | |
800 | | - | |
| 800 | + | |
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
| 829 | + | |
| 830 | + | |
834 | 831 | | |
| 832 | + | |
835 | 833 | | |
836 | 834 | | |
837 | 835 | | |
| |||
847 | 845 | | |
848 | 846 | | |
849 | 847 | | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
855 | 851 | | |
856 | 852 | | |
857 | 853 | | |
| |||
914 | 910 | | |
915 | 911 | | |
916 | 912 | | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
925 | 917 | | |
926 | 918 | | |
927 | 919 | | |
| |||
0 commit comments