#94 Set LANG/LC_CTYPE=C.UTF-8 or pass the environment down to subprocesses
Closed: fixed 6 years ago Opened 6 years ago by tjaalton.

Python3 in Fedora forces C.UTF-8, but for other distributions the default is still C. This causes issues with current FreeIPA/Certmonger where running dogtag-ipa-ca-renew-agent-submit would fail because the locale should be UTF-8.

cm_subproc_propagate_environment() should either set a proper LANG/LC_CTYPE or pass it down. My preference would be to do both, pass C.UTF-8 if it's not set to anything else than C.


dogtag-ipa-ca-renew-agent-submit[749]: Traceback (most recent call last):
File "/usr/lib/certmonger/dogtag-ipa-ca-renew-agent-submit", line 541, in <module>
sys.exit(main())
File "/usr/lib/certmonger/dogtag-ipa-ca-renew-agent-submit", line 502, in main
api.bootstrap(in_server=True, context='renew', confdir=paths.ETC_IPA)
File "/usr/lib/python2.7/dist-packages/ipalib/plugable.py", line 491, in bootstrap
raise errors.SystemEncodingError(encoding=fse)
SystemEncodingError: System encoding must be UTF-8, 'ANSI_X3.4-1968' is not supported. Set LC_ALL="C.UTF-8", or LC_ALL="" and LC_CTYPE="C.UTF-8".

Metadata Update from @rcritten:
- Issue assigned to rcritten
- Issue close_status updated to: fixed
- Issue priority set to: blocker
- Issue set to the milestone: 0.79
- Issue status updated to: Closed (was: Open)

6 years ago

Log in to comment on this ticket.

Metadata