From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TCuby-00018V-Ji for mharc-grub-devel@gnu.org; Sat, 15 Sep 2012 11:48:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCubw-00018P-WE for grub-devel@gnu.org; Sat, 15 Sep 2012 11:48:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCubv-00019Q-Rg for grub-devel@gnu.org; Sat, 15 Sep 2012 11:48:48 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:59015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCubv-00019I-LF for grub-devel@gnu.org; Sat, 15 Sep 2012 11:48:47 -0400 Received: by weys10 with SMTP id s10so3277778wey.0 for ; Sat, 15 Sep 2012 08:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=qxlXRIkLYh/WvTsg8qfq+4TEon0gI8gFayJVYPpR5pI=; b=FPw9kxVKiGruR6wO791XrT/ImgLU4m/3J4x/U5WSi09BQZJfY41QegpZatigsvZy7C iBwTxKQNV1wDkjWBYcdau4nTljqYmhqMZyf/WjbcJhfxV2pxucpE5qlzj+AaWCtbsl9G xQKSCl1sqPx6q5/fdiBp/9tRf93cLrYXN45TXD+vzU8uiV7flI14UfyE77Q5RVCe64mT Ddsuq7muRJ84kQe3vM4ABdHYnBm9eHww8/NJY6addXmYY+tYqC06JsL9usUajBK3Da01 tds5G7monYa4f7wyRww4cCw9ahd8lVRkSYRAsb6JqRYtG7aCDKmS9nLKlRivau3/NuBF 9f8Q== Received: by 10.180.87.34 with SMTP id u2mr5456386wiz.3.1347724126131; Sat, 15 Sep 2012 08:48:46 -0700 (PDT) Received: from debian.x201.phnet (35-232.197-178.cust.bluewin.ch. [178.197.232.35]) by mx.google.com with ESMTPS id h9sm5836961wiz.1.2012.09.15.08.48.44 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 15 Sep 2012 08:48:45 -0700 (PDT) Message-ID: <5054A352.1070808@gmail.com> Date: Sat, 15 Sep 2012 17:48:34 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: grub-mkconfig locale vs. boot-time grub locale References: <1347717791.11900.15.camel@opensuse.site> In-Reply-To: <1347717791.11900.15.camel@opensuse.site> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig0AF30B12A92B65810725AA14" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Sep 2012 15:48:50 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0AF30B12A92B65810725AA14 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 15.09.2012 16:03, Andrey Borzenkov wrote: > Currently grub-mkconfig is using current (at the time of invocation) > locale to >=20 > 1. output status messages during invocation > 2. put translated messages (verbatim) into generated grub.cfg > 3. set language in grub.cfg (set lang) >=20 > 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 unpredictabl= e > value set on remote system. >=20 > Now imagine Chinese customer support employee remotely invoking > grub-mkconfig for European customer ... >=20 > It seems that case 1 and 2/3 should be treated differently. Suggestion > is >=20 > - 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. >=20 > - provide convenience wrapper for scripts in /etc/grub.d which basicall= y > does LC_MESSAGES=3D$GRUB_LANG gettext ... >=20 > Does it sound sensible? >=20 Just set LC_ALL/LC_MESSAGES in /etc/default/grub. I don't see a reason to have a separate variable for this in etc/default/grub if you can just set standard ones there. > -andrey >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig0AF30B12A92B65810725AA14 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAlBUo1sACgkQNak7dOguQgl8WAD+O4PSusz9OD1MvIlKd86ZDmLT fNRL70l5kpYwkxRi/QkA/18HZLrykBlQZvq0bGtprMKX0ZIwyc/3RZa9ncQ4Lhhp =IJQt -----END PGP SIGNATURE----- --------------enig0AF30B12A92B65810725AA14--