THashedStringList ignores the CaseSensitive flag
Original Reporter info from Mantis: giuliano
-
Reporter name: G. Colla
Original Reporter info from Mantis: giuliano
- Reporter name: G. Colla
Description:
THashedStringList always uses a case sensitive match (both for Values and for Names) and doesn't take into account the CaseSensitive flag.
This appears to be a bug, and is not Delphi compatible.
Steps to reproduce:
Execute IndexOf or IndexOfName in a THashedSstringList leaving CaseSensitive false (as it is when the list is created) with a key or a value whose case doesn't match the original one. The result will be -1 instead of the proper index.
Additional information:
Please find here attached a patch to inifiles.pp which should fix the issue.
Mantis conversion info:
- Mantis ID: 30568
- Version: 3.0.0
- Fixed in version: 3.1.1
- Fixed in revision: 34467 (#1ca3e6c4)
- Target version: 3.0.2