https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67255
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- GCC uses consistent quotes, but depends on environment variables such as LANG. Presumably one of the commands you are running sets LANG=C or similar, which causes GCC to output ASCII apostrophes. If you want consistent results then set LANG=C yourself before running any of the commands.