Opened 17 years ago

Closed 17 years ago

#435 closed Bugs (Postponed)

Problem writing wstrings containing \0 to xml archives

Reported by: eelis Owned by: Robert Ramey
Milestone: Component: serialization
Version: None Severity:
Keywords: Cc:

Description

When writing a std::wstring containing a \0 character
to an xml_oarchive, only the initial substring up to
(but not including) the \0 is written. This is
demonstrated in the attached testcase.

Change History (2)

comment:1 by nobody, 17 years ago

Logged In: NO 

OK - clearly an oversight on my part. 

Actually, your case points to a somewhat larger problem.  
The question about non displayable characters in utf-8 
locale's.  xml has syntax for handling this so its doable but it 
means that the xml generation/parsing has to be enhanced to 
be sensitive to this.  Its not a big thing but it end up bigger 
than it looks at first glance.

This will take a little time to fix.  Thanks for spotting this.

Robert Ramey

comment:2 by Robert Ramey, 17 years ago

Status: assignedclosed
Logged In: YES 
user_id=396141

Pending issue.  xml doesn't permit some characters in 
strings.  This will be addressed probably in 1.34
Note: See TracTickets for help on using tickets.