From: Andrey Borzenkov <arvidjaar@gmail.com>
To: Grub-devel@gnu.org
Subject: grub-mkconfig locale vs. boot-time grub locale
Date: Sat, 15 Sep 2012 18:03:11 +0400 [thread overview]
Message-ID: <1347717791.11900.15.camel@opensuse.site> (raw)
Currently grub-mkconfig is using current (at the time of invocation)
locale to
1. output status messages during invocation
2. put translated messages (verbatim) into generated grub.cfg
3. set language in grub.cfg (set lang)
The problem is, user locale at the time of invocation does not
necessarily correspond to default system locale. This becomes even more
extreme as SSH and su/sudo often pass through locale environment
variables by default; so user locale may be inherited from unpredictable
value set on remote system.
Now imagine Chinese customer support employee remotely invoking
grub-mkconfig for European customer ...
It seems that case 1 and 2/3 should be treated differently. Suggestion
is
- export GRUB_LANG in grub-mkconfig for use in /etc/grub.d scripts.
GRUB_LANG is supposed to be set to system wide default. This may be set
by distributions in /etc/default/grub when system locale is changed or
determined dynamically from existing configuration.
- provide convenience wrapper for scripts in /etc/grub.d which basically
does LC_MESSAGES=$GRUB_LANG gettext ...
Does it sound sensible?
-andrey
next reply other threads:[~2012-09-15 14:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-15 14:03 Andrey Borzenkov [this message]
2012-09-15 15:48 ` grub-mkconfig locale vs. boot-time grub locale Vladimir 'φ-coder/phcoder' Serbinenko
2012-09-15 17:38 ` Andrey Borzenkov
2012-09-18 8:21 ` Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1347717791.11900.15.camel@opensuse.site \
--to=arvidjaar@gmail.com \
--cc=Grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.