Bug#546534: libconfig-simple-perl: fails to parse some ini-files

2009-09-17 Thread gregor herrmann
On Thu, 17 Sep 2009 20:25:01 +0200, Stefan Denker wrote: > > /^\s*([^=]+?)\s*=\s*(.*)\s*$/ > > works for me, without the '?' the space before the = sign gets > > greedily included in the hash key. > *facepalm* Ok, you're right... The usual fun with regexps :) > > Attached is a complete diff,

Bug#546534: libconfig-simple-perl: fails to parse some ini-files

2009-09-17 Thread Stefan Denker
On Mon, Sep 14, 2009 at 10:52:45PM +0200, gregor herrmann wrote: > On Sun, 13 Sep 2009 23:22:24 +0200, Stefan Denker wrote: >> The error message is misleading, to me the culprit seems to be >> line 290: >> $line =~ /^\s*([^=]*\w)\s*=\s*(.*)\s*$/ and >> $data{$bn}->{lcase($1)}=[parse_line(READ_DE

Bug#546534: libconfig-simple-perl: fails to parse some ini-files

2009-09-14 Thread gregor herrmann
tag 546534 + patch pending thanks On Sun, 13 Sep 2009 23:22:24 +0200, Stefan Denker wrote: > The error message is misleading, to me the culprit seems to be > line 290: > $line =~ /^\s*([^=]*\w)\s*=\s*(.*)\s*$/ and > $data{$bn}->{lcase($1)}=[parse_line(READ_DELIM, 0, $2)], next; > > I'd sugges

Bug#546534: libconfig-simple-perl: fails to parse some ini-files

2009-09-13 Thread Stefan Denker
Package: libconfig-simple-perl Version: 4.59-3 Severity: normal Config::Simple has some issues when parsing Ini-files. This File [colors] average (2009) = blue leads to the error message | Something went wrong. No supported configuration file syntax found. Either the file is of wrong syntax,