Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#22600 - [initscripts] bad locales during init process
Attached to Project:
Arch Linux
Opened by Sébastien Luttringer (seblu) - Tuesday, 25 January 2011, 14:52 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 27 February 2011, 11:00 GMT
Opened by Sébastien Luttringer (seblu) - Tuesday, 25 January 2011, 14:52 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 27 February 2011, 11:00 GMT
|
DetailsAt boot start, global $LANG env var is not available on process started in DAEMONS var in rc.conf.
So, for example, smbnetfs which use this variables when it starts to dertermine its charset conversion between samba server and locale system is broken. The previous behaviour it's unexpected for me because I thought bash will load /etc/profile.d/locales.sh during boot time (but no). rc.sysinit and rc.single not need to have locale set. but rc.multi which run DAMEONS should. I propose the following patch. Regards, |
This task depends upon
rc.multi.patch
Another point I'd like to raise is that the locale conversion in configurable everywhere I've seen it before (ntfs-3g, mount.cifs and so on) and should default to UTF8 for any sane program.
I would be willing to accept a patch that made this configurable via rc.conf - but please only send patches against the current git master branch.
About smbnetfs, this can be setted in master config file (i will do that). smbnetfs behaviour is not insane. Running locale command during boot process show "POSIX" as local, so smbnetfs guess that system locale is C/POSIX (!= UTF8) and decide to use it.
ok for patch from master. I can do an another patch with an ENABLE_LOCALE_DURING_BOOT var in rc.conf, but it's maybe not useful. Tell me what you want.
1) LANG=C, unset LC_*, or
2) the value from rc.conf
to be consistent here. The same holds for TZ - I keep forgetting to unset TZ before running 'apachectl graceful' on our server, which has an effect on log files. Maybe we should solve all these problems together and at the same time make the DAEMON locale configurable as mentioned above.
Usually there is many more env var in your shell (a less secure PATH for example).
It could be useful to have a "run" command which run like with init.
https://projects.archlinux.org/initscripts.git/commit/?id=ef74507563bf994d6abb2621ebd3b6f6818b6b2f
about naming of the option, i draw your attention on DAEMON_LOCALE which may mislead. rc.local script is run under this new env and something like BOOT_LOCAL or EARLY LOCALE is maybe more clear.