In my local env these two return identical results.
Python 3.11.7 (main, Dec 18 2023, 00:00:00) [GCC 13.2.1 20231011 (Red Hat 13.2.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getdefaultlocale()
<stdin>:1: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead.
('en_US', 'UTF-8')
>>> locale.getlocale(locale.LC_CTYPE)
('en_US', 'UTF-8')
This is probably an issue caused by underlying python. Can you check the following results
import locale getdefaultlocal e() getlocale( locale. LC_CTYPE)
locale.
locale.
In my local env these two return identical results.
Python 3.11.7 (main, Dec 18 2023, 00:00:00) [GCC 13.2.1 20231011 (Red Hat 13.2.1-4)] on linux getdefaultlocal e() getdefaultlocal e' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. getlocale( locale. LC_CTYPE)
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.
<stdin>:1: DeprecationWarning: 'locale.
('en_US', 'UTF-8')
>>> locale.
('en_US', 'UTF-8')