From owner-freebsd-hackers Thu Sep 7 22: 2:48 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 879B937B423; Thu, 7 Sep 2000 22:02:45 -0700 (PDT) Received: from localhost (kris@localhost) by freefall.freebsd.org (8.9.3/8.9.2) with ESMTP id WAA89347; Thu, 7 Sep 2000 22:02:45 -0700 (PDT) (envelope-from kris@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: kris owned process doing -bs Date: Thu, 7 Sep 2000 22:02:45 -0700 (PDT) From: Kris Kennaway To: Jan Knepper Cc: John Doh! , bright@wintelcom.net, security@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: How to stop problems from printf In-Reply-To: <39B864D5.5BCC24E7@smartsoft.cc> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message