This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: New ARI warning Thu Mar 3 01:53:39 UTC 2011
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 3 Mar 2011 08:02:09 +0400
- Subject: Re: New ARI warning Thu Mar 3 01:53:39 UTC 2011
- References: <20110303015339.GA30897@sourceware.org>
> > gdb/utils.c:2004: gettext: _ markup: All messages should be marked up with _.
> gdb/utils.c:2004: error ("The escape sequence `\\%c' is equivalent to plain `%c',"
Fixed with the attached patch....
--
Joel
commit a302e41aea176ee6d76081823c8e86b22464aa9f
Author: Joel Brobecker <brobecker@adacore.com>
Date: Thu Mar 3 07:49:15 2011 +0400
add i18n markup in error message (utils.c:parse_escape)
gdb/ChangeLog:
* utils.c (parse_escape): Add i18n markup in error message.
diff --git a/gdb/utils.c b/gdb/utils.c
index 46b4612..91e6af4 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -2001,8 +2001,8 @@ parse_escape (struct gdbarch *gdbarch, char **string_ptr)
}
if (!host_char_to_target (gdbarch, c, &target_char))
- error ("The escape sequence `\\%c' is equivalent to plain `%c',"
- " which has no equivalent\nin the `%s' character set.",
+ error (_("The escape sequence `\\%c' is equivalent to plain `%c',"
+ " which has no equivalent\nin the `%s' character set."),
c, c, target_charset (gdbarch));
return target_char;
}