Syntax errors in production only: should SWI-Prolog encoding be pinned in source or in deployment config?
A SWI-Prolog codebase loads and runs correctly on development machines, but on the production host the same files fail with syntax errors or produce silently wrong atoms. The working hypothesis is character encoding: the files are saved as UTF-8, while the server locale differs from the workstation locale, so the byte stream is misread before parsing and the