From: Ben Pfaff Date: Thu, 16 Jul 2009 05:12:41 +0000 (-0700) Subject: i18n: Eliminate some translatable strings. X-Git-Tag: build37~58 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b003fcaaf12c21fda3d44580154b54c54c6cd54;p=pspp-builds.git i18n: Eliminate some translatable strings. --- diff --git a/src/language/lexer/lexer.c b/src/language/lexer/lexer.c index 26511614..8b3f2a48 100644 --- 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; } }