libffshit/tests
Konstantin Pereiaslov 79d0702c8e
Some checks failed
Build dev / ubuntu-noble-dev-build (push) Has been cancelled
Build dev / debian-bookworm-dev-build (push) Has been cancelled
SGOLD names in the phone's codepage
SGOLD keeps a name in the 8-bit codepage of the phone's language when the
codepage has all of its characters, and else as 0x1F followed by the name
in UTF-8, which is what the emulated CX70 v56 stored for names sent over
OBEX. Filesystem::Base::set_codepage() picks the codepage, CP1252 by
default: CP1251 for Cyrillic languages, CP1250 for Central European ones.

The SGOLD reader decodes names with it instead of returning the bytes, and
the writer encodes them the way the firmware does, so names beyond ASCII
can be written. The firmware folds the case of ASCII letters only and
hashes the stored bytes, 0x1F included. A name in another codepage than
the phone's is listed by the phone, but it cannot open it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MhNPkhMCs197RC4AQ3Nfgs
2026-09-29 21:12:43 +00:00
..
CMakeLists.txt Writing AI prototype 2026-09-29 15:39:29 -05:00
fullflash_fixture.cpp SGOLD names in the phone's codepage 2026-09-29 21:12:43 +00:00
fullflash_fixture.h SGOLD names in the phone's codepage 2026-09-29 21:12:43 +00:00
hash_test.cpp SGOLD names in the phone's codepage 2026-09-29 21:12:43 +00:00
write_test.cpp SGOLD names in the phone's codepage 2026-09-29 21:12:43 +00:00