lenamonj opened a new pull request, #443:
URL: https://github.com/apache/commons-codec/pull/443

   `DirectoryEntry.compareTo` used `String.compareTo`, which orders UTF-16 code 
units. Git orders raw UTF-8 bytes; outside the Basic Multilingual Plane the two 
differ, so `treeId` disagreed with `git write-tree` for a tree holding U+FF21 
and U+1F600.
   
   The sort key is now the name's UTF-8 bytes, compared unsigned. Names below 
U+D800 keep their order, so the existing constants are unchanged. The new test 
pins the id `git write-tree` produces and fails on the old comparator.
   
   Checklist: guidelines and the ASF generative-tooling guidance read. AI was 
used: Claude (Anthropic) found the defect and drafted the fix and test in an 
audit loop I run; I reviewed it, reproduced the id with `git write-tree`, and 
ran the default Maven goal, which passes. changes.xml updated.
   
   Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_01BzeiNYQSD3LEBxsHTKRxQt
   


-- 
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]

Reply via email to