-
Notifications
You must be signed in to change notification settings - Fork 3
Releases: omonien/DX.TOML
Releases · omonien/DX.TOML
v1.0.1 - UTF-8 BOM Handling Fix
This release fixes a critical bug with UTF-8 BOM handling and adds comprehensive UTF-8 encoding documentation.
🐛 Fixed
UTF-8 BOM Handling (#1)
SaveToFile()now writes UTF-8 without BOM to avoid parser errorsFromFile()now correctly handles files with UTF-8 BOM by skipping itFromFile()validates encoding and rejects non-UTF-8 BOMs (UTF-16, UTF-32) with clear error messages- Added regression test
TestSaveAndLoadFileto ensure save/load roundtrip works correctly
📚 Added
UTF-8 Encoding Documentation
- Added comprehensive UTF-8 encoding section to README
- Documented TOML 1.0 specification requirement (UTF-8 mandatory)
- Explained BOM handling (optional but supported)
- Provided Delphi-specific guidance for reading TOML files with correct encoding
- Added examples showing correct vs incorrect file reading patterns
🔧 Changed
- Renamed
.github/README.mdto.github/GITHUB_FILES.mdto prevent GitHub from displaying it as repository README
✅ Testing
- All 43 unit tests pass
- 556/556 toml-test suite tests pass (100% TOML 1.0 compliance maintained)
📖 Full Changelog
See CHANGELOG.md for complete details.