Re: printversion could be more translation-friendly
Wichert Akkerman <wichert@wiggy.net> writes:
> Previously Santiago Vila wrote:
>> Yes, I do:
>>
>> if (fprintf(stdout,
>> _("Debian `%s' package management program version %s.\n"),
>> DPKG, DPKG_VERSION_ARCH) < 0) werr("stdout");
>>
>> If you don't trust a \n-terminated fprintf to do the right thing,
>> I suggest that you write your own version, rather than making the code
>> a hell to translate.
>
> I am only going to rely on certainties. In this case POSIX, and
> preferably even less. And POSIX makes no guarantees that that fprintf
> will flush the IO buffers as far as I can see.
fputs gives you no additional guarantee over fprintf.
--
http://www.greenend.org.uk/rjk/
--
To UNSUBSCRIBE, email to debian-dpkg-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: