GNOME Bugzilla – Bug 638894
Splitting on \s* gives no result
Last modified: 2011-02-02 14:55:47 UTC
Created attachment 177730 [details] Very simple C file that shows the bug Using g_regex_split_simple on a string with "\s*" as a pattern, I get no results. The manual explicitly says: [g_regex_split_simple] For example splitting "ab c" using as a separator "\s*", you will get "a", "b" and "c". This apparently happens on at least a lot of (all?) Arch Linux installations. I've attached a simple example application that shows this. Expected output: 1: 2 2: 3 Actual output: 1: 2
Works as expected here. I've now added your test cases to the test suite.
@Mattias, our glib2 package is compiled with system pcre support. currently in repos we have 8.11. Did your glib 2.26.1 is compiled in this way? I'm just trying to find the bug here with your help. We don't patch or modify in any way glib and is kinda hard for me to pin point the fault
glib 2.27.93 is not affected by this bug.