workaround for a gettext string starting with --.

Workaround found in Advanced Bash-Scripting Guide, localization section.
"added a \0 (NULL) at the beginning of the sentence."

Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
This commit is contained in:
Chantry Xavier 2008-01-20 14:08:55 +01:00 committed by Dan McGee
parent ba7687f58e
commit 73ee64d49f
1 changed files with 1 additions and 1 deletions

View File

@ -1187,7 +1187,7 @@ done
if [ "$HOLDVER" = "1" -a "$FORCE_VER" != "" ]; then
# The extra '--' is here to prevent gettext from thinking --holdver is
# an option
error "$(gettext -- "--holdver and --forcever cannot both be specified")"
error "$(gettext "\\0--holdver and --forcever cannot both be specified" )"
exit 1
fi