[PATCH] bfd: Always use CP_ACP=1 on Solaris [PR11280]

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Mon Jun 29 09:26:12 GMT 2026


bfd/configure.host defines CP_ACP=1 on Solaris 11 as a workaround for
the lack the MS-ANSI codepage in Solaris libc iconv(3C).  However, the
issue isn't restricted to some OpenSolaris build as the comment
suggests, but present on Solaris in general as can be seen in the iconv -l
output:

On both Solaris 10 and 11.4, one gets

	CP1252 (1252, ANSI-1252, WINDOWS-1252),

unlike GNU iconv which lists

	CP1252 MS-ANSI WINDOWS-1252

Therefore, this patch applies the patch on all Solaris versions.

Tested on {amd64,i386}-pc-solaris2.11 and sparc{v9,}-sun-solaris2.11.

Ok for trunk?


I didn't try to reproduce the original issue as reported in PR
binutils/11280, but just went by the description there.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2026-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	bfd:
	PR binutils/11280
	* configure.host (HDEFINES): Always define CP_ACP=1 on Solaris.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sol2-cp_acp.patch
Type: text/x-patch
Size: 1054 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260629/e6ccbdb7/attachment-0001.bin>


More information about the Binutils mailing list