OK interesting .....
The /utf8 option means the execution character set and source character set is UTF-8, i.e. a source file without a BOM must be UTF-8 (7-bit ASCII is a subset of UTF-8 so will work, "exotic" ANSI characters will not work, etc.)
I don't have a Win7 machine for a quick test right now, I will see if it's possible to set up. ..
I note that the above mentions
/utf8 not
/utf-8 so I tried that on WIN7 home with PellesC v12.002 the object file was created and there was NO error message so next I made up a random
fake command switch and I get the "unknown option" error
as I should, and
no obj file is created.
Then I tried /utf no error, /ut no error, /u shows switches list (and is valid switch to undefine pp symbol, although should be uppercase). as long as /ut is there anything can be after it like /utf99999 with no error....
SO with the test.c file one can't really tell if utf-8 is working because all characters are 7bit ASCII which are valid so we should try with valid unique to UTF-8 and/or BOM however it appears that /utf8 or just /ut is/are valid switch input(s) and adequate for windows 7 and Pelles C version 12.00.02 with pocc version 12.0.1.0
I'm not saying it makes sense
Going to test more ....
John Z