Enhance encodings in regrtest header (#161959)

If the UTF-8 mode is disabled and/or if PYTHONCOERCECLOCALE
environment variable is set to "0": mention it in the "== encodings"
regrtest header.

If the locale encoding and the filesystem encoding are equal,
log "locale=FS=<encoding>" to have a shorter output.

On Windows, log ANSI and OEM code pages.
1 file changed