[PATCH] Add i18n utilities to common library

William Hubbs w.d.hubbs at gmail.com
Wed Oct 6 00:59:28 CEST 2010


Hi Rui,

On Tue, Oct 05, 2010 at 09:44:31PM +0200, Andrei Kholodnyi wrote:
> > setlocale doesn't return nothing we can check for errors...
> > The other two return NULL on out of memory. In this case what should we
> > do? Abort?
> 
> I think just return an error e.g. -1 and let caller decide what to do.

 Most of our other out of memory situations are handled by glib's
 allocation routines which abort in that situation, so, for consistency,
 I would vote for aborting.  That also means you don't have to change
 your functions to return values.

William

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freebsoft.org/pipermail/speechd/attachments/20101005/f66a84a0/attachment.pgp>


More information about the Speechd mailing list