From: Robert Millan <rmh@aybabtu.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [PATCH 2/3] Compilation with external intl library
Date: Fri, 1 Jan 2010 13:08:57 +0100 [thread overview]
Message-ID: <20100101120857.GJ3692@thorin> (raw)
In-Reply-To: <20091231165504.28764.48611.stgit@yves.private.network>
On Thu, Dec 31, 2009 at 05:55:04PM +0100, Yves Blusseau wrote:
> +/* Disabled NLS.
> + The casts to 'const char *' serve the purpose of producing warnings
> + for invalid uses of the value returned from these functions.
> + On pre-ANSI systems without 'const', the config.h file is supposed to
> + contain "#define const". */
> +# define gettext(Msgid) ((const char *) (Msgid))
> +# define grub_gettext(str) ((const char *) (str))
This should have #ifdef GRUB_UTIL / #else.
> + grub_util_init_nls();
Please add a space in-between (in this and other calls).
> diff --git a/util/mkisofs/mkisofs.h b/util/mkisofs/mkisofs.h
> index 79ae502..55b4aa6 100644
> --- a/util/mkisofs/mkisofs.h
> +++ b/util/mkisofs/mkisofs.h
> @@ -30,10 +30,7 @@
> #include <prototyp.h>
> #include <sys/stat.h>
>
> -#include <locale.h>
> -#include <libintl.h>
> -#define _(str) gettext(str)
> -#define N_(str) str
> +#include <grub/i18n.h>
Please don't make mkisofs depend on GRUB headers. It's a bit confusing,
but mkisofs is supposed to be a separate package.
--
Robert Millan
"Be the change you want to see in the world" -- Gandhi
next prev parent reply other threads:[~2010-01-01 12:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-31 16:54 [PATCH] Compilation with external intl library Yves Blusseau
2009-12-31 16:54 ` [PATCH 1/3] " Yves Blusseau
2009-12-31 16:55 ` [PATCH 2/3] " Yves Blusseau
2010-01-01 12:08 ` Robert Millan [this message]
2009-12-31 16:55 ` [PATCH 3/3] " Yves Blusseau
2010-01-01 12:09 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100101120857.GJ3692@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.