This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Resolved status.

2479. Unclear how wbuffer_convert uses cvtstate

Section: 99 [depr.conversions.buffer] Status: Resolved Submitter: Jonathan Wakely Opened: 2015-03-04 Last modified: 2025-11-11

Priority: 4

View all other issues in [depr.conversions.buffer].

View all issues with Resolved status.

Discussion:

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.

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

Proposed resolution: