bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] revised xvasprintf module


From: Bruno Haible
Subject: Re: [Bug-gnulib] revised xvasprintf module
Date: Thu, 9 Sep 2004 14:33:31 +0200
User-agent: KMail/1.5

Oskar Liljeblad wrote:
> But how should it be handled - with some xalloc-die
> equivalent? Or by truncating the result?

I would say, with a fatal error message, like xalloc-die.

Truncating a string is almost always the wrong thing to do. Especially
in the presence of multibyte characters, where you have to be careful not
to truncate in the middle of a character.

Bruno





reply via email to

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