Opened 11 years ago
Last modified 11 years ago
#6236 new Bugs
code_converter does not allocate second buffer
Reported by: | Owned by: | Jonathan Turkanis | |
---|---|---|---|
Milestone: | To Be Determined | Component: | iostreams |
Version: | Boost 1.48.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The code_converter will not allocate the second buffer for bidirectional devices.
The open method checks
if (can_write::value && !is_double::value)
but it should be
if (can_write::value && is_double::value)
Attachments (2)
Change History (3)
by , 11 years ago
Attachment: | boostTests.cpp added |
---|
comment:1 by , 11 years ago
The test code blows up in the utf8_codecvt_facet do_out method when trying to access the unallocated 'to' buffer.
Note:
See TracTickets
for help on using tickets.
test code