Opened 10 years ago

Closed 9 years ago

#5373 closed defect (wontfix)

CPLGetExtension returns empty string for ".b"

Reported by: Kurt Schwehr Owned by: warmerdam
Priority: low Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

A minor thing, but I would expect CPLGetExtention(".b") to return "b". Instead, it returns an empty string ("").

Not likely to cause issues, but the behavior does not match the documentation.

Change History (2)

comment:1 by Kyle Shannon, 10 years ago

goatbar, I'm not sure this is wrong. A file name may have an extension, but by your logic, the string would only have an extension, and no filename. '.b' is a valid unix filename as far as I know.

comment:2 by Even Rouault, 9 years ago

Resolution: wontfix
Status: newclosed

I don't see any real point in keeping that open. Behaviour of CPLGetExtension() when it is only an extension is unclear. And I can't see any use case for that in GDAL.

Note: See TracTickets for help on using tickets.