nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] bug in --help


From: Jordi Mallach
Subject: [Nano-devel] bug in --help
Date: Thu, 14 Apr 2005 01:41:40 +0200
User-agent: Mutt/1.5.8i

Hey there,

Here's my nasty bug for this release :)

(btw, was it the Silent Release, with no info-nano announcement, or did
I totally miss the 1.3.7 mails?)

    /* This is a special case. */
    print1opt("-a, -b, -e,", "", "");
    print1opt("-f, -g, -j", "", _("(ignored, for Pico compatibility)"));

The first call to print1opt is causing nano to print the translation
header in --help when using a non-English locale.

David, I have installed nano 1.3.7 deb in natura: have a look at the
output of "LANG=ca_ES nano --help".

The problem is print1opt_full() does this at the end:

    printf("%s\n", _(desc));

which, in the case of the "-a, -b, -e" line effectively calls
gettext(""), which is a Bad Idea®, as the empty string is special and
holds the gettext header in every po file. If you try to translate ""
with gettext, you get this ugly header in your output.

Food for 1.3.8. :)

Jordi
-- 
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
address@hidden     address@hidden     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/

Attachment: signature.asc
Description: Digital signature


reply via email to

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