After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 15026 - g_strsplit inconsistency
g_strsplit inconsistency
Status: VERIFIED FIXED
Product: glib
Classification: Platform
Component: general
1.2.x
Other other
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2000-06-22 22:55 UTC by danw
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
(669 bytes, text/plain)
2001-01-27 17:28 UTC, Exported from Debbugs
Details
(976 bytes, text/plain)
2001-01-27 17:28 UTC, Exported from Debbugs
Details

Description danw 2001-01-27 17:28:32 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.