Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TGd59-0001xw-PK for mharc-grub-devel@gnu.org; Tue, 25 Sep 2012 17:54:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGd57-0001xP-9S for grub-devel@gnu.org; Tue, 25 Sep 2012 17:54:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGd56-0007ch-CG for grub-devel@gnu.org; Tue, 25 Sep 2012 17:54:17 -0400 Received: from chiark.greenend.org.uk ([212.13.197.229]:57097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGd56-0007cX-6V for grub-devel@gnu.org; Tue, 25 Sep 2012 17:54:16 -0400 Received: from [172.20.153.9] (helo=riva.pelham.vpn.ucam.org) by chiark.greenend.org.uk (Debian Exim 4.72 #1) with esmtps (return-path cjwatson@ubuntu.com) id 1TGd55-0000og-8v; Tue, 25 Sep 2012 22:54:15 +0100 Received: from localhost ([127.0.0.1] helo=sarantium.pelham.vpn.ucam.org) by riva.pelham.vpn.ucam.org with esmtp (Exim 4.72) (envelope-from ) id 1TGd54-0004GD-Lp; Tue, 25 Sep 2012 22:54:14 +0100 Received: from riva.dynamic.greenend.org.uk (localhost [127.0.0.1]) by sarantium.pelham.vpn.ucam.org (Postfix) with ESMTPS id F07FA3E43ED; Tue, 25 Sep 2012 22:54:12 +0100 (BST) Date: Tue, 25 Sep 2012 22:54:11 +0100 From: Colin Watson To: The development of GNU GRUB Subject: Re: [PATCH] suppress error message "/grub2/locale/en.mo.gz not found" Message-ID: <20120925215411.GB25791@riva.dynamic.greenend.org.uk> References: <1348469509-21079-1-git-send-email-mchang@suse.com> <506029C8.8000804@kiilerich.com> <1348512057.1612.10.camel@opensuse.site> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 212.13.197.229 Cc: Andrey Borzenkov 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: Tue, 25 Sep 2012 21:54:18 -0000 On Tue, Sep 25, 2012 at 12:46:15PM +0800, Michael Chang wrote: > I agree with you. IMHO the problem is it's not emitted directly from > gettext module but from common underlying fs level, removing it would > lead to other message which is fatal be ignored as well. That's incorrect; the gettext module is perfectly able to disregard errors from lower-level methods that it doesn't care about. > Another question is : Is there any other good method offered by grub2 > to check the files existence that we could test before calling > grub_file_open() in gettext.c ? Anybody has good idea on this ? This is the wrong approach; you should try it and then handle errors, not look-before-you-leap. -- Colin Watson [cjwatson@ubuntu.com]