projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df9d073
)
i18n: Eliminate some translatable strings.
author
Ben Pfaff
<blp@gnu.org>
Thu, 16 Jul 2009 05:12:41 +0000
(22:12 -0700)
committer
Ben Pfaff
<blp@gnu.org>
Fri, 17 Jul 2009 02:54:02 +0000
(19:54 -0700)
src/language/lexer/lexer.c
patch
|
blob
|
history
diff --git
a/src/language/lexer/lexer.c
b/src/language/lexer/lexer.c
index 265116141eb36f0d8ffa685a326431cd79f7b7ad..8b3f2a48d00474811a09c090f8a82d1b75ed7546 100644
(file)
--- a/
src/language/lexer/lexer.c
+++ b/
src/language/lexer/lexer.c
@@
-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;
}
}