This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New ARI warning Thu Mar 3 01:53:39 UTC 2011


> > 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;
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]