bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure wchar size check


From: Thomas Dickey
Subject: Re: configure wchar size check
Date: Thu, 6 May 2021 16:13:32 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Thu, May 06, 2021 at 12:10:18PM +0200, Miroslav Lichvar wrote:
> Just a minor issue in the configure script. It uses this code to get
> the size of wchar_t:
> 
> fprintf (f, "%d", (sizeof (wchar_t)));
> 
> which produces the following warning:
> 
> format '%d' expects argument of type 'int', but argument 3 has type
> 'long unsigned int'
> 
> I suspect it might not work as expected a 64-bit big-endian arch.

I've run that on AIX and HPUX (big-endian), where sizeof(wchar_t) is 4.
The particular chunk in question dates from July 2013.

> I'm not sure where that code is coming from. If I run autoconf here,
> it generates a different check.

(reading the generated configure script...)

The test has more than one part, and first tries a different approach.
If that fails, it falls through to this chunk.  Presumably the first
part of the test doesn't fail often.

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]