Re: patch to change behavior of g_strsplit on empty string back to 1.2 behavior



Dan Winship <danw ximian com> writes:
> > Well, there is clearly one thing missing here ... the corresponding
> > change to the documentation (docs/glib/tmpl/string_utils.sgml) :-)
> > 
> > That needs a comment to the point:
> > 
> >  "The result of a splitting an empty string is an empty vector"
> 
> and also "an empty trailing segment is discarded", since that's the
> confusing behavior that inspired me to write the original bug report
> that resulted in the patch that this patch is reverting...
> 

I have to say that I'm so confused about g_strsplit() now that I'll
never use it again. ;-)

Havoc




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