i18n: Eliminate some translatable strings.
authorBen Pfaff <blp@gnu.org>
Thu, 16 Jul 2009 05:12:41 +0000 (22:12 -0700)
committerBen Pfaff <blp@gnu.org>
Fri, 17 Jul 2009 02:54:02 +0000 (19:54 -0700)
src/language/lexer/lexer.c

index 265116141eb36f0d8ffa685a326431cd79f7b7ad..8b3f2a48d00474811a09c090f8a82d1b75ed7546 100644 (file)
@@ -385,10 +385,9 @@ lex_get (struct lexer *lexer)
           else
             {
               unsigned char c = *lexer->prog++;
-              if (c_isgraph (c))
-                msg (SE, _("Bad character in input: `%c'."), c);
-              else
-                msg (SE, _("Bad character in input: `\\%o'."), c);
+              char *c_name = xasprintf (c_isgraph (c) ? "%c" : "\\%o", c);
+              msg (SE, _("Bad character in input: `%s'."), c_name);
+              free (c_name);
               continue;
             }
         }