Title
Unclear how wbuffer_convert uses cvtstate
Status
resolved
Section
[depr.conversions.buffer]
Submitter
Jonathan Wakely

Created on 2015-03-04.00:00:00 last changed 1 month ago

Messages

Date: 2025-11-10.00:00:00

[ 2025-11-10 Resolved by the removal of wbuffer_convert via paper P2872R3 in Tokyo, 2024. Status changed: New → Resolved. ]

Date: 2015-03-04.00:00:00

How does wbuffer_convert use the cvtstate member?

Is the same conversion state object used for converting both the get and put areas? That means a read which runs out of bytes halfway through a multibyte character will leave some shift state in cvtstate, which would then be used by a following write, even though the shift state of the get area is unrelated to the put area.

History
Date User Action Args
2025-11-11 15:50:46adminsetmessages: + msg15727
2025-11-11 15:50:46adminsetstatus: new -> resolved
2015-03-04 00:00:00admincreate