mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:40:52 +01:00
[PR #168] leonida_mods: hash lower-cased Latin-1 bytes in joaat() #220
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#220
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/168
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9902📝 Commits (1)
3b42026leonida_mods: hash lower-cased Latin-1 bytes in joaat()📊 Changes
1 file changed (+2 additions, -4 deletions)
View changed files
📝
tools/leonida_mods.py(+2 -4)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116815084
What and why
tools/leonida_mods.py'sjoaat(name)encoded the string as UTF-8 first and only folded ASCII uppercase bytes (0x41..0x5A), diverging fromtools/hashdict.py's canonicalname.lower().encode("latin-1", "replace")on every non-ASCII name and causing 6 subtest failures intests/test_joaat_agreement.py(copy='leonida_mods'). Hashname.lower().encode("latin-1", "replace")soleonida_mods.joaatagrees withhashdict.joaat.Tested
python -I tests/test_joaat_agreement.py: all 10copy='leonida_mods'subtests pass (0 failures forleonida_mods, down from 6; remaining 6 failures onmainare infind_hash_lookup)python -I tests/test_leonida_mods.py -v:ManifestTests(test_hashes_match_the_runtime_contract,test_manifest_validation_matches_runtime_rules) andSamplesAndGuiTestspass (9/10 pass;test_run_print_builds_gta6rt_commandhas an unrelated pre-existing Windows failure because its fixture createsgta6rt.sh)python -m compileall -q tools/leonida_mods.py: exit 0python -I scripts/check_no_game_data.py tools/leonida_mods.py: exit 0AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.