Opened 7 years ago

Closed 7 years ago

#5743 closed defect (invalid)

CSLFetchBoolean broken

Reported by: Lucian Plesea Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

CSLFetchBoolean should do what the description says it does. Currently it returns true if the key exists, regardless of the value.

Change History (2)

comment:1 Changed 7 years ago by Even Rouault

I think the function does what that documentation says. If the list contains strings like "key_without_value" and "key_with_value=value", CSLFetchBoolean(, "key_without_value") will return TRUE and CSLFetchBoolean(, "key_with_value=value") will return TRUE if value is considered as TRUE. Unless I missed something ?

comment:2 Changed 7 years ago by Lucian Plesea

Resolution: invalid
Status: newclosed

Agree, sorry, I was using it wrong.

Note: See TracTickets for help on using tickets.