GNOME Bugzilla – Bug 15026
g_strsplit inconsistency
Last modified: 2009-08-15 18:40:50 UTC
Package: glib Version: 1.2.8 g_strsplit behaves inconsistently with empty strings: g_strsplit (":x:x", ":", 0) -> "", "x", "x", NULL g_strsplit ("x::x", ":", 0) -> "x", "", "x", NULL g_strsplit ("x:x:", ":", 0) -> "x", "x", NULL (I think this is a bug, but if you disagree, I think it should at least be documented.) -- Dan ------- Additional Comments From wilhelmi@ira.uka.de 2000-10-26 09:11:46 ---- Subject: Re: Bug#15026: g_strsplit inconsistency From: Sebastian Wilhelmi <wilhelmi@ira.uka.de> To: 15026-close@bugs.gnome.org Message-Id: <39F82D92.D5FB230A@ira.uka.de> Date: Thu, 26 Oct 2000 15:11:46 +0200 Hi Tim, > > I tend to agree, that this is a bug. Unless noone objects, I'm going to > > commit the attached patch, that solves that. > > ok, hard to tell from the patch, i assume it does: > > g_strsplit ("x:x:", ":", 0) -> "x", "x", "", NULL > > right? Yes, I forgot to mention that... > if so, please commit. Done. Bye, Sebastian -- Sebastian Wilhelmi | här ovanför alla molnen mailto:wilhelmi@ira.uka.de | är himmlen så förunderligt blå http://goethe.ira.uka.de/~wilhelmi | _______________________________________________ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list ------- Bug moved to this database by debbugs-export@bugzilla.gnome.org 2001-01-27 12:28 ------- This bug was previously known as bug 15026 at http://bugs.gnome.org/ http://bugs.gnome.org/show_bug.cgi?id=15026 Originally filed under the glib product and general component. The original reporter (danw@helixcode.com) of this bug does not have an account here. Reassigning to the exporter, debbugs-export@bugzilla.gnome.org. Reassigning to the default owner of the component, gtkdev@gtk.org.