Bug 243940 - RFE: support for initscripts-specific locale settings
Summary: RFE: support for initscripts-specific locale settings
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: initscripts
Version: 4.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: initscripts Maintenance Team
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-06-12 21:05 UTC by Jiri TRAVNICEK, alias JITR {temporarily not reading bugmail}
Modified: 2009-03-11 16:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-11 16:54:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed implementation (645 bytes, patch)
2007-06-12 21:05 UTC, Jiri TRAVNICEK, alias JITR {temporarily not reading bugmail}
no flags Details | Diff

Description Jiri TRAVNICEK, alias JITR {temporarily not reading bugmail} 2007-06-12 21:05:03 UTC
Description of problem:

This is RFE proposes enhancements that allows system administrator to set a
locale for initscripts which is independent of the system-wide setting (set in
`/etc/sysconfig/i18n'.

Note: This was created on CentOS 4 but applies to REHL 4 as well (initscripts
package are quite the same in both distros -- the CentOS modifications are
minimal and should cause no difference in this regard).


Version-Release number of selected component (if applicable):

7.93.29.EL-1 (actually 7.93.29.EL-1.centos4)


Additional info:

With the current implementation, the initscripts already support locale settings
which are taken from the above mentioned system-wide configuration. The same
system-wide config also constitutes default setting for any user who doesn't
override them with his own settings in `~/.i18n'.

This can prove to be a problem if the admin likes to use a locale for the init
scripts (including the services which don't set supply own setup) that is
different from what a typical user would expect. For example, I don't like to
see the boot and shutdown messages in Czech. (Have a dislike against localised
messages in general and additionally there are still some bugs with the fonts
and the like.) So I prefer the messages in English. But a typical user may
expect a Czech locaele since we're in Czech republic. ;-)

Therefore I propose (and also provide a patch) which provides the ability to set
a different locale for the initscripts that is independent from the system-wide
config. If there's no specific setting, the system-wide values are used. That
means the change is backwards compatible.

It is possible to override the `LANG' and `LC_MESSAGES' variables. `LC_MESSAGES'
is provided for those who only care about the messages. It has proved useful to
me to use the Czech locale and only override `LC_MESSAGES' to English.

The settings are taken from the `/etc/sysconfig/i18n' as usually, but two new
variables are recognized. They're `LANG_INIT' `LC_MESSAGES_INIT' and if set,
they override `LANG' and `LC_MESSAGES' respectively.

Comment 1 Jiri TRAVNICEK, alias JITR {temporarily not reading bugmail} 2007-06-12 21:05:03 UTC
Created attachment 156828 [details]
proposed implementation

Comment 2 Jiri TRAVNICEK, alias JITR {temporarily not reading bugmail} 2007-06-12 21:08:12 UTC
Forgot to mention a bug 161075 which, is similar but still different. This
proposal should be less tricky and should *not* break anything.


Comment 3 Florian La Roche 2007-07-25 14:25:11 UTC
I think this is a really good RFE. I want all system ids and startup scripts to
run under a special system locale. Only normal users get a different locale and
translations.

Maybe /etc/sysconfig/i18n could be replaced with a longer shell script to
make this happen.

+1 to get this as an option where some parts of the system get translations,
but bootup stays in en_US locale. Some system daemons already allow an
override of this, but this should be a generic option for all services.

regards,

Florian La Roche



Comment 4 Bill Nottingham 2007-07-25 17:56:14 UTC
I'm still not convinced of the need for it; if you want the system locale to be
en_US, then set it that way; users can still set their own locale in a variety
of ways.

Comment 5 Jiri TRAVNICEK, alias JITR {temporarily not reading bugmail} 2007-07-26 11:57:23 UTC
Bill, you're right that the user can set up his own locale. But the typical user
may (and I believe also will) expect the administrator to provide a suitable
default.

By suitable default, one would probably mean the locale used in the local
country (unless the system is being used by users from different countries; this
may make things a bit more complicated). Such locale may often be different from
`en_US'.

As reasoned in the first paragraph, I consider it useful to be able to provide a
suitable (particularly non-`en_US') default while still being able to use
`en_US' for the system startup.


Comment 6 Bill Nottingham 2009-03-11 16:54:57 UTC
Apologies for the delay in response.

At this stage in the lifecycle of Red Hat Enterprise Linux 4, with the goal of mantaining stability and consistency for our custormers, we are only adding critical bugfixes and security fixes; this issue would not qualify under those criteria. Hence, marking this as WONTFIX for RHEL 4.

Again, apologies for the inconvenience.


Note You need to log in before you can comment on or make changes to this bug.