mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #1303] mods: hash a mod.json name as hashdict.joaat does (OLD-10050) #1333
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#1333
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/1303
Author: @wetw0rks-c0ding
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:restore/old-10050-mods-joaat-latin1📝 Commits (1)
ca898f0mods: hash a mod.json name as hashdict.joaat does (lower-cased Latin-1, not UTF-8 bytes)📊 Changes
2 files changed (+63 additions, -5 deletions)
View changed files
📝
runtime/src/mods.h(+48 -5)📝
runtime/test/mods_test.cpp(+15 -0)📄 Description
Claimed in the coordination issue as: OLD-10050
What and why
mods::joaathashed UTF-8 bytes and lower-cased only ASCII, so amod.jsonname containing non-ASCII Latin-1 characters got a different hash fromtools/hashdict.pyand archetype swaps silently missed their target. It now decodes UTF-8, lower-cases across Latin-1 code points and hashes the Latin-1 bytes with a?fallback, matchinghashdict.joaat.Tested
cmake -S runtime -B runtime/build && cmake --build runtime/build --parallel 6 && ctest --test-dir runtime/build -R mods --output-on-failure-> ctest 1/1 passedpython -I scripts/check_no_game_data.py runtime/src/mods.h runtime/test/mods_test.cpp-> cleanAI-assisted: Yes. This work was done with OpenCode agents.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.