-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPL_DEBUG does not accept "YES" or "TRUE" #11219
Comments
Yes we should support YES,TRUE,ON,1 . For CPL_DEBUG, we can't use CPLTestBool() for that, since CPL_DEBUG also accepts other strings to filter by component. |
And we should likely enhance CPLTestBool() to warn if the string passed to it is not one of YES,TRUE,ON,1,NO,FALSE,OFF,0 |
It wouldn't hurt for now, but unless I'm mistaken there would be no way for the error message to contain the context from which it was called? Longer-term, something returning a |
Should or already does? At the moment,
CPL_DEBUG=ON
works, butYES
andTRUE
don't.Originally posted by @lnicola in #8440 (comment)
Nearby,
CPL_TIMESTAMP
interprets any value as "YES", including "NO".The text was updated successfully, but these errors were encountered: