Re: New g_ascii_strtod/g_ascii_dtostr() patch



On Fri, 5 Oct 2001, Alex Larsson wrote:

> On Fri, 5 Oct 2001, Tim Janik wrote:
> 
> > On Thu, 4 Oct 2001, Alex Larsson wrote:
> > > He proposed that we should set errno to 0 in g_ascii_strtod(). What do 
> > > people think about this? Personally i don't like doing magic that makes 
> > > it behave in a way the standard call does.
> > 
> > for g_ascii_strtod(), we're pretty free to reset errno to 0, since
> > we're not 1:1 mimicking a libc function there.
> 
> We are mimicking an "old" pre-locales libc function though.
 
(responding to myself)

Also, reseting errno here may cause problem for users that actually want 
the errors in a function to "stick". If we randomly clear it people may 
miss an old error.

/ Alex






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