bugGNU GRUB - Bugs: bug #35880, grub tries to load...


You are not allowed to post comments on this tracker with your current authentication level.

bug #35880: grub tries to load $grubdir/locale/en.mo.gz

Submitted by:  Mike GIlbert <floppym>
Submitted on:  Sat Mar 17 22:04:45 2012  
Votes:  85  
Category: BootingSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: Mike Gilbert
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: Every Time
Planned Release: None

(Jump to the original submission Jump to the original submission)

Mon Mar 4 14:45:11 2013, comment #12:

For the record, this silly complaint is patched out the very same way at least openSUSE and ALT Linux.

(file #27564)

Michael Shigorin <gvy>
Thu Sep 6 10:53:05 2012, comment #11:

Vladimir, I think that this is a kind of odd position to take, honestly. Userspace gettext falls back silently to untranslated text if translations are unavailable. I don't see why boot loader translations are so much more important than userspace translations that they require printing an error message; furthermore, surely in cases of doubt similarly-named parts of the GNU system should behave similarly, and therefore GRUB gettext should adopt the behaviour of GNU libc gettext here.

(file #26488)

Colin Watson <cjwatson>
Project Member
Thu May 10 09:49:11 2012, comment #10:

IMO the problem is not so much what it try to load but the error message when a locale setting without translation is used.

The complaint about the missing locale is relevant when grub-mkconfig is run - not so much on runtime.

Mads Kiilerich <kiilerix>
Mon Mar 19 16:09:16 2012, comment #9:


Perhaps we should change this from a bug to a feature request: add "en" and "en_US" translations.

Mike GIlbert <floppym>
Mon Mar 19 16:05:15 2012, comment #8:

The problem here basically is that user requests specifically en_US and not C/POSIX and neither en_US nor en is available.
And actually en_US translation for GRUB would make the sense since currently the translation also specifies date format and by default GRUB uses ISO date.

Vladimir Serbinenko <phcoder>
Project Administrator
Mon Mar 19 16:00:02 2012, comment #7:

Right, so your point is that other applications have English translations. Is such a thing in the works for GRUB?

If not, maybe you could just add an empty translation for English to prevent the error message from happening at boot.

Mike GIlbert <floppym>
Mon Mar 19 15:44:47 2012, comment #6:

> rather than complaining about a base en translation that will never exist.

phcoder@debian.x201.phnet:16:43:56:~/compile$ ls /usr/share/locale/en/LC_MESSAGES/
clisplow.mo clisp.mo gnome-control-center-2.0.mo gtk30.mo gtk30-properties.mo iso_3166_2.mo lynx.mo

Vladimir Serbinenko <phcoder>
Project Administrator
Sat Mar 17 23:54:08 2012, comment #5:

I think the main issue is that the error is misreported; it should tell the user that the en_US dialect is missing, rather than complaining about a base en translation that will never exist.

Mike GIlbert <floppym>
Sat Mar 17 23:23:54 2012, comment #4:

Yes, but English is a bit of a special case; the messages are already written in English.

Nobody really cares about quotes in their boot loader.

Mike GIlbert <floppym>
Sat Mar 17 23:19:27 2012, comment #3:

It's not created because there is no en.po. But the same holds also for e.g. es.po (Spanish) but we need to give a reason why GRUB isn't in locale language despite being configured for it.

Vladimir Serbinenko <phcoder>
Project Administrator
Sat Mar 17 23:11:47 2012, comment #2:

As far as I can tell, en.mo.gz is never created, so attempting to load it will never succeed.

Mike GIlbert <floppym>
Sat Mar 17 22:12:27 2012, comment #1:

This is not a bug. "en" locale may also need some translation like handling proper quoting, see en@quot. So not loading it wouldn't be correct.

Vladimir Serbinenko <phcoder>
Project Administrator
Sat Mar 17 22:04:45 2012, original submission:

Grub tries to load an English translation if grub-mkconfig is run with an English locale (LANG=en_US.UTF-8).

This causes an error message to briefly displayed before the menu loads on boot up.

This was originally reported downstream at Gentoo Linux.


Mike GIlbert <floppym>


Attached Files
file #26488:  gettext_quiet.patch added by cjwatson (612B - text/x-diff)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by gvy (Updated the item)
  • -unavailable- added by wfmakowski (Voted in favor of this item)
  • -unavailable- added by thewilbur (Voted in favor of this item)
  • -unavailable- added by fturco
  • -unavailable- added by cjwatson (Updated the item)
  • -unavailable- added by kiilerix (Posted a comment)
  • -unavailable- added by ridikulus_rat
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by floppym (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 85 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Nov 3 04:37:41 2013phcoderStatusNone=>Fixed
    Mon Mar 4 14:45:10 2013gvyAttached File-=>Added grub2-fix-locale-en.mo.gz-not-found-error-message.patch, #27564
    Sun Jan 6 17:04:33 2013wfmakowskiCarbon-Copy-=>Added wfmakowski
    Sat Dec 29 21:08:27 2012thewilburCarbon-Copy-=>Added thewilbur
    Sat Dec 8 18:04:47 2012fturcoCarbon-Copy-=>Added -unavailable-
    Thu Sep 6 10:53:05 2012cjwatsonAttached File-=>Added gettext_quiet.patch, #26488
    Tue Apr 3 07:56:55 2012ridikulus_ratCarbon-Copy-=>Added ridikulus_rat

    Back to the top

    Powered by Savane 3.1-cleanup1