On Sun, Jan 25, 2026 at 02:22:38PM +0200, Vsevolod Volkov wrote:
Hi,

Missing "#include <wctype.h>" in curs_lib.c causes a build error:

gcc -DPKGDATADIR=\"/usr/share/mutt\" -DSYSCONFDIR=\"/etc\" -DBINDIR=\"/usr/bin\" 
-DMUTTLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H=1 -I.  -I. -I. -I./imap      -Wall -pedantic 
-Wno-long-long -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall 
-Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  
-m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection 
-mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O1 -MT curs_lib.o -MD -MP -MF 
.deps/curs_lib.Tpo -c -o curs_lib.o curs_lib.c
curs_lib.c: In function 'mutt_format_string':
curs_lib.c:1384:11: error: implicit declaration of function 'iswblank' 
[-Wimplicit-function-declaration]
1384 |       if (iswblank (wc))

Hmmm... this is pretty old code.

Just to check, what's your output from
  $ grep HAVE_WCTYPE_H config.h
  $ grep HAVE_WC_FUNCS config.h

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to