* grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors

if language is English.
This commit is contained in:
Vladimir Serbinenko 2013-11-03 05:42:02 +01:00
parent 090d7c81cf
commit 6cd660435e
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
if language is English.
2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/osdep/linux/getroot.c: Fix cast-align problems.

View file

@ -423,6 +423,10 @@ grub_gettext_init_ext (struct grub_gettext_context *ctx,
grub_free (lang);
}
if (locale[0] == 'e' && locale[1] == 'n'
&& (locale[2] == '\0' || locale[2] == '_'))
grub_errno = err = GRUB_ERR_NONE;
return err;
}