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

Created on 2015-03-04.00:00:00 last changed 111 months ago

Messages

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
2015-03-04 00:00:00admincreate