[Bug 272758] c16rtomb and c32rtomb wrong return value (at least on aarch64)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 May 2024 10:55:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272758 Philipp <pkk@spth.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|Works As Intended |--- Status|Closed |Open --- Comment #6 from Philipp <pkk@spth.de> --- Maybe this "Works As Intended", since the user can "zero the mbstate_t struct and it should all work well". But then this should be clearly documented as an intentional deviation from the C standard. The C standard clearly states that mbrtoc16, when writing a null wide character, puts the mbstate_t object into the initial conversion state. It doesn't matter if that happens via zeroing or any other way. But, according to the C standard, mbrtoc16 does it, the user doesn't have to do it. -- You are receiving this mail because: You are the assignee for the bug.