Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Sep 2000 22:02:45 -0700 (PDT)
From:      Kris Kennaway <kris@FreeBSD.org>
To:        Jan Knepper <jan@smartsoft.cc>
Cc:        John Doh! <johndoh_@hotmail.com>, bright@wintelcom.net, security@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: How to stop problems from printf
Message-ID:  <Pine.BSF.4.21.0009072201160.87560-100000@freefall.freebsd.org>
In-Reply-To: <39B864D5.5BCC24E7@smartsoft.cc>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 8 Sep 2000, Jan Knepper wrote:

> I don't know what you are doing with the 'gettext' in the call to 'printf'.

Translate the string into a localized version. You can't just printf("%s",
gettext(...), args) because the arguments won't be printed, only the raw
string returned from gettext will, which contains operators you wanted to 
be substituted for. See the original example.

Kris

--
In God we Trust -- all others must submit an X.509 certificate.
    -- Charles Forsythe <forsythe@alum.mit.edu>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0009072201160.87560-100000>