mirror of
https://github.com/morluto/rea.git
synced 2026-11-21 22:15:50 +00:00
`file -b` reports `data` for an XML plist containing a control character or NUL byte, which CoreFoundation still reads. plistSourceFormat only probed the source for markup when `file` reported text, so these sources were labelled `unknown` and skipped REA's XML reader. When that reader would have refused them, the result also lacked the limitation that says the value came from plutil's conversion. Two plists shipped with macOS 27.2.1 are affected. Probe the source prefix for any description that does not name binary, XML or JSON. Such XML now takes the same route as XML that `file` recognizes: REA's reader decodes it directly, or #12251's plutil fallback records REA's refusal reason. OpenStep and other non-markup sources stay `unknown`.