bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xgettext doesn't handle escapes properly for bash


From: Jakub Bogusz
Subject: xgettext doesn't handle escapes properly for bash
Date: Sat, 16 Apr 2005 12:46:41 +0200
User-agent: Mutt/1.5.9i

When using bash $"" translations, bash requires backslash-escaped
characters to be included with escapes in msgid/msgstr strings.
`bash --dump-po-strings` handles this properly, but xgettext doesn't
- it just omits backslash character.
Here is short test (using bash 3.0 and gettext 0.14.4):

$ cat xgt-test
#!/bin/bash
echo $"quoted \`"

$ bash --dump-po-strings xgt-test
#: xgt-test:3
msgid "quoted \\`"
msgstr ""

$ LC_ALL=C xgettext --omit-header -L shell -d -  xgt-test
xgt-test:3: warning: the syntax $"..." is deprecated due to security reasons; 
use eval_gettext instead
#: xgt-test:3
msgid "quoted `"
msgstr ""


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]