Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2023 07:49:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        standards@FreeBSD.org
Subject:   [Bug 272218] mbsinit returns true for a state that is not in the initial state
Message-ID:  <bug-272218-99-td39k3pTtE@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-272218-99@https.bugs.freebsd.org/bugzilla/>
References:  <bug-272218-99@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272218

--- Comment #1 from bruno@clisp.org ---
The cause is that the file src/lib/libc/locale/mbrtocXX_iconv.h puts some d=
ata
into the mbstate_t. Whereas the mbsinit() function, as defined in
src/lib/libc/locale/mbsinit.c, tests only a single word from this state.

mbsinit() should return 0 if ((_ConversionState *)ps)->srcbuf_len > 0 ||
((_ConversionState *)ps)->dstbuf_len > 0.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272218-99-td39k3pTtE>