Enable UTF-8 code page on Windows 64-bit host [PR108865]
Compile a resource object that contains the utf8 manifest.
Then link that object into the driver and compiler proper.
For compiler proper the link has to be forced because the
resource object file gets into a static library (libbackend.a)
and gets eventually dropped because it has no symbols of
its own and nothing is referencing it inside the library.
Therefore, an artificial symbol is planted to force the link.
gcc/ChangeLog:
PR driver/108865
* config.host: add object for x86_64-*-mingw*.
* config/i386/sym-mingw32.cc: dummy file to attach
symbol.
* config/i386/utf8-mingw32.rc: windres resource file.
* config/i386/winnt-utf8.manifest: XML manifest to
enable UTF-8.
* config/i386/x-mingw32: reference to x-mingw32-utf8.
* config/i386/x-mingw32-utf8: Makefile fragment to
embed UTF-8 manifest.
Signed-off-by:
Jonathan Yong <10walls@gmail.com>
Showing
- gcc/config.host 3 additions, 2 deletionsgcc/config.host
- gcc/config/i386/sym-mingw32.cc 1 addition, 0 deletionsgcc/config/i386/sym-mingw32.cc
- gcc/config/i386/utf8-mingw32.rc 3 additions, 0 deletionsgcc/config/i386/utf8-mingw32.rc
- gcc/config/i386/winnt-utf8.manifest 8 additions, 0 deletionsgcc/config/i386/winnt-utf8.manifest
- gcc/config/i386/x-mingw32 1 addition, 2 deletionsgcc/config/i386/x-mingw32
- gcc/config/i386/x-mingw32-utf8 56 additions, 0 deletionsgcc/config/i386/x-mingw32-utf8
Loading
Please register or sign in to comment