On Mon, 12 May 2008, Lorenzo Fiorini wrote:

Hi Lorenzo,

> hbini.prg has "=:|" as key, value default separators. This means that sth 
> like:
> [MAIN]
> prog=c:\windows\edit.exe
> by default returns only "c"
> IMHO it's widely accepted that "=" is the only separator in ini files,
> so I suggest to change the default to "=" only and left to the user to
> add other separators ( it is a function parameter ).

It's a bug which should be fixed. hb_RegexSplit() cannot be used
to decode the line because it gives wrong results when value contain
delimiters. It should be fixed. Changing default delimiter value
does not resolve the problem. As Viktor said we should also add
support for quoted values which can contain any other characters
like comment markers.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to