]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: fix update-po-config to accect backslash in input
authorSam Ravnborg <sam@ravnborg.org>
Wed, 8 Apr 2009 06:42:48 +0000 (08:42 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 11 Apr 2009 06:18:07 +0000 (08:18 +0200)
commitaaee0aefc2cab7ea915b93bc9f98e6f3fbe9d9a5
treef4c3ad90864f58aa8098c313d21d6638907058f5
parent2e705c7ee840721159e4c7ad8a576203aa820e6c
kconfig: fix update-po-config to accect backslash in input

Massimo Maiurana reported (slightly edited):

=====
In latest 2.6.29 "make update-po-config" fails at msguniq invocation
with an "invalid control sequence" error.
The offending string is the following, and it's located in
drivers/staging/panel/Kconfig:72:

    "'\e[L' which are specific to the LCD, and a few ANSI codes. The"

looks to me like gettext expects strings in printf format, so in
this case it thinks "\e" is a control sequence but doesn't recognise
it as a valid one.

A valid solution would be to tell kxgettext to automatically
escape this kind of strings in the */config.pot he produces, so that
msguniq would not complain.
=====

This patch implements the suggested escaping.

Reported-by: Massimo Maiurana <maiurana@gmail.com>
Tested-by: Massimo Maiurana <maiurana@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/kconfig/kxgettext.c