[PR] Fix case-insensitive ZIP entry matching in ZipFileZipEntr ySource under Turkish Locale [poi]

kali834x (via GitHub) <[email protected]>
Newsgroups gmane.comp.jakarta.poi.devel
Message-ID <[email protected]>
kali834x opened a new pull request, #1136:
URL: https://github.com/apache/poi/pull/1136

   `ZipFileZipEntrySource.getEntry()` performs case-insensitive matching of ZIP entry names. However, its implementation is inconsistent with `ZipInputStreamZipEntrySource`, which normalizes names using `toLowerCase(Locale.ROOT)` before lookup.
   
   Since OPC ZIP entry names are standardized and should be compared using locale-independent ASCII semantics, both implementations should use the same normalization strategy to ensure consistent behavior across entry source types.
   
   This PR aligns `ZipFileZipEntrySource` with `ZipInputStreamZipEntrySource` by normalizing names using `toLowerCase(Locale.ROOT)`. A unit test is added to verify consistent case-insensitive lookups and to guard against locale-related regressions, including under the Turkish locale.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.