Align Five's CDX file layout with Harbour's expectations: - Compound root header at 0, compound leaf at 1024, tags at 1536+ - "RCHB" signature at offset 20 in compound root - IgnoreCase/collation flags at offset 503-505 - Compound leaf: LeftPtr/RightPtr = 0xFFFFFFFF, recBits=16 fixed - Tags sorted alphabetically in compound directory B-tree - Tag IndexOpt: TypeCompact | TypeCompound (0x60) Status of Harbour cross-read verification: - CHAR-only CDX tags: layout matches Harbour byte-for-byte - Numeric tags: Harbour uses IEEE double (8-byte) key encoding, Five uses DBF ASCII key bytes — causes DBFCDX/1012 corruption when Harbour reads Five-created CDX with numeric tags - Five reading Harbour CDX: works perfectly (existing) - Five reading Five CDX: works perfectly Remaining: numeric key encoding for full Harbour write-compatibility. CLAUDE.md updated to reflect this single remaining limitation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
14 KiB
14 KiB