-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure character encoding can be detected by tlog on Fedora and RHEL #8
Comments
See also Scribery/tlog#78. |
A (rather burdensome) workaround can be for user to set up pam_env themselves. |
The pam_env workaround can be putting this into
Putting it before this line seems to work:
|
I started a discussion of locale environment setup in Fedora on [email protected]: |
There was no response to the message on Fedora devel maillist. |
Getting in touch with PAM maintainers next. |
Tomas Mraz, the PAM and authconfig maintainer in Fedora seems to be fine with the PAM-based fix as long as the format of /etc/locale.conf is within what pam_env.so expects. I raised systemd-devel to check, and run the whole idea past them. |
Another approach could be letting the systemd and login pass the locale environment variables read and set by systemd-logind. First these lines need to be removed from the /lib/systemd/system/[email protected] file:
And the following line in the same file:
needs to be changed to this:
|
A fix for the above was submitted to systemd: systemd/systemd#6023 |
Discussion with systemd upstream is still ongoing, but we have the fallback path of the PAM configuration. |
At the moment, at least on Fedora, when logging in via login on console or with su, tlog is supplied with ASCII as the character encoding to use and aborts (because it only supports UTF-8). At the same time ASCII is not the actual character encoding to use, and the configured encoding is in fact UTF-8. This is due to Fedora (at least) setting it in /etc/locale.conf, to be sourced by shells when they read startup files.
This ad-hoc solution is leaving other programs, which are not prepared to interpret shell language (or even just the limited language of /etc/locale.conf) in the cold. Instead something like the Debian approach should be used. Debian sets locale using pam_env, which works for any program.
Find a way to read Fedora (and RHEL) locale settings in tlog, and/or change the way the distributions do it.
The text was updated successfully, but these errors were encountered: