Locale error

Hi, I’m getting locale error on rpi3 with osmc while using pl_PL.UTF-8. Why is only C.UTF-8 included in locale on osmc systems?

ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class ‘locale.Error’>
Error Contents: unsupported locale setting
Traceback (most recent call last):
File “/home/osmc/.kodi/addons/plugin.video.iptv.recorder/contextEPG.py”, line 87, in
usedLocale = locale.setlocale(locale.LC_TIME, “pl_PL.UTF-8”)
File “/usr/lib/python2.7/locale.py”, line 581, in setlocale
return _setlocale(category, locale)
Error: unsupported locale setting

Hi,

I suspect to save diskspace, default would be to install a minimum number of locates to cover most languages.

You can install with:

sudo dpkg-reconfigure locales

You can select pl_PL.UTF-8 with the spacebar, suggest leaving currently configured locales selected.

Thanks Tom.

Thank you very much for your answer!

1 Like