Re: [Boost-bugs] [Boost C++ Libraries] #13402: Log format JUNIT generates invalid XML files with incorrect encoding

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13402: Log format JUNIT generates invalid XML files with incorrect encoding
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-01-26 08:37:41


#13402: Log format JUNIT generates invalid XML files with incorrect encoding
-------------------------------+-------------------------------
  Reporter: gallien@… | Owner: Gennadiy Rozental
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: test
   Version: Boost 1.66.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-------------------------------

Comment (by Raffi Enficiaud):

 Sorry I meant ASCII-7bits: it is a subset of chars that does not require
 any escaping, so in my opinion it is correct to say that this is UTF-8
 since no UTF-8 escaping is involved. See for instance here:
 https://en.wikipedia.org/wiki/ASCII#Unicode

 In order to be correct in the encoding, we have to include other libraries
 (eg. ICU) that handle any source encoding and then map it to UTF-8
 properly. While relevant, especially for string comparison, this is not my
 priority right now.

 Determining the source encoding depends on how the files/compiler were
 configured at the time of Boost.Test compilation (MSBC vs Unicode in
 Windows) and for the module being tested. There is no trivial way to
 detect this and assumptions should be made, and this assumption should be
 consistent in all situations (boost.test as an external static library for
 instance). Also, you see that this is not at all related to the current
 locale.

 What would be possible is to let the user specify the encoding in some
 way, and since Boost.Test is ASCII only, then it should not matter how
 Boost.Test is compiled as long as the user's encoding is ASCII backward
 compatible (latin1, utf8).

 But to me, all this will just led to confusion.

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13402#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-01-26 08:42:05 UTC