[docutils:bugs] #495 locale.Error: unsupported locale setting
Artur Stępniak via Docutils-develop <[email protected]> Tue, 15 Oct 2024 18:34:01 -0000
| Newsgroups | gmane.text.docutils.devel |
|---|---|
| Message-ID | </p/docutils/bugs/495/97393bb06f19c42eeb5e7c4235f8bdcbaee57e5e.bugs@docutils.p.sourceforge.net> |
I somehow missed that Silesian Polish is set for some options. After changing that I no longer experience the issue. This must have been set by KDE Plasma as ~/.config/plasma-localerc contained options with those values. But how the values ended up in the file is a mistery for me.
Thank you for help
---
**[bugs:#495] locale.Error: unsupported locale setting**
**Status:** pending-remind
**Created:** Tue Oct 08, 2024 11:34 AM UTC by Artur Stępniak
**Last Updated:** Tue Oct 15, 2024 01:51 PM UTC
**Owner:** nobody
I'm getting "locale.Error: unsupported locale setting" when running e.g. rst2man docs/man/openvpn3-log.1.rst | groff -Tutf8 -man
Full output:
~~~
Traceback (most recent call last):
File "/usr/bin/rst2man", line 8, in <module>
sys.exit(rst2man())
^^^^^^^^^
File "/usr/lib/python3.12/site-packages/docutils/core.py", line 760, in rst2man
rst2something('manpage', 'Unix manual (troff)', 'user/manpage.html')
File "/usr/lib/python3.12/site-packages/docutils/core.py", line 739, in rst2something
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python3.12/locale.py", line 615, in setlocale
return _setlocale(category, locale)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
locale.Error: unsupported locale setting
~~~
my locale setting:
~~~
locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=szl_PL.UTF-8
LC_CTYPE="szl_PL.UTF-8"
LC_NUMERIC=pl_PL.UTF-8
LC_TIME=pl_PL.UTF-8
LC_COLLATE="szl_PL.UTF-8"
LC_MONETARY=pl_PL.UTF-8
LC_MESSAGES="szl_PL.UTF-8"
LC_PAPER=pl_PL.UTF-8
LC_NAME=pl_PL.UTF-8
LC_ADDRESS=pl_PL.UTF-8
LC_TELEPHONE=pl_PL.UTF-8
LC_MEASUREMENT=pl_PL.UTF-8
LC_IDENTIFICATION=pl_PL.UTF-8
LC_ALL=
~~~
---
Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/docutils/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.