What Fossil does is to warn you during a commit that a file contains data that it didn't expect to be there (binary, not Unicode, etc.). It will not actually alter the contents of the file unless the c=convert
option is there and you select it. If you select the convert option, it will first convert the file and then ask you to actually commit it in a separate step.
When you suppress warnings with --no-warnings
, it will not show the warning and assume that you want to commit the file (without converting it).
For a more permanent solution, the encoding-glob
setting (which can be either local to the repository or set globally) can contain a pattern (such as *.txt
) that denotes files that contain text in other formats (and for binary files, the binary-glob
setting does that). When Fossil encounters non-Unicode content, it will then not raise the warning and assume that you want this; again, it will not convert the file, it just tells Fossil that you know what you are doing and that the non-Unicode content is intentional.