void-packages/srcpkgs/grub/patches/gettext_quiet.patch

25 lines
606 B
Diff
Raw Normal View History

Description: Silence error messages when translations are unavailable
Author: Colin Watson <cjwatson@ubuntu.com>
Bug: https://savannah.gnu.org/bugs/?35880
Last-Update: 2012-09-06
Index: grub-core/gettext/gettext.c
===================================================================
--- grub-core/gettext/gettext.c
+++ grub-core/gettext/gettext.c
@@ -412,6 +412,14 @@
grub_free (lang);
}
+
+ /* If no translations are available, fall back to untranslated text. */
+ if (err == GRUB_ERR_FILE_NOT_FOUND)
+ {
+ grub_errno = GRUB_ERR_NONE;
+ return 0;
+ }
+
return err;
}