| commit | 68e80d96a84282d547f3b3c1234c99009521630c | [log] [tgz] |
|---|---|---|
| author | Clément Chigot <chigot@adacore.com> | Tue Jun 28 09:42:12 2022 +0200 |
| committer | Clément Chigot <chigot@adacore.com> | Tue Jun 28 16:55:24 2022 +0200 |
| tree | 2ed72fc7ad30f012a2c35e5a4b99410c53b8abb2 | |
| parent | fadaf8f7f99f8fe81aa8403c5d90c95cae5bd2ec [diff] |
bfd: handle codepage when opening files on MinGW
Even if MS docs say that CP_UTF8 should always be used on newer
applications, forcing it might produce undefined filename if the
encoding isn't UTF-8.
MinGW seems to call ___lc_codepage_func() in order to retrieve the
current thread codepage.
bfd/ChangeLog:
* bfdio.c (_bfd_real_fopen): Retrieve codepage with
___lc_codepage_func() on MinGW.