[Boost-bugs] [Boost C++ Libraries] #1736: Headers containing non ASCII characters cause MS VC to issue warning 4819 in some locales

Subject: [Boost-bugs] [Boost C++ Libraries] #1736: Headers containing non ASCII characters cause MS VC to issue warning 4819 in some locales
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-03-31 11:33:38


#1736: Headers containing non ASCII characters cause MS VC to issue warning 4819
in some locales
------------------------------------------------+---------------------------
 Reporter: paulg+boost_at_[hidden] | Type: Bugs
   Status: new | Milestone: Boost 1.36.0
Component: None | Version: Boost 1.35.0
 Severity: Problem | Keywords:
------------------------------------------------+---------------------------
 Some boost headers, including but not limited to,

 detail/utf8_codecvt_facet.hpp
 detail/allocator_utilities.hpp
 detail/atomic_count_gcc.hpp
 utility/enable_if.hpp
 config/compiler/sunpro_cc.hpp
 config/compiler/vacpp.hpp
 boost/ref.hpp

 Contain non ASCII characters within comments. Some of these are copyright
 symbols others are within people names.

 If this these files are fed to the Microsoft Visual C++ compiler and the
 system is set to use a locale which cannot represent these characters the
 following warning is produced

 warning C4819: The file contains a character that cannot be represented in
 the current code page
 (xxx). Save the file in Unicode format to prevent data loss"

 In the specific case this was found it was with a Japanese version of
 Windows using SHIFT-JIS.

 The best fix is to remove the non ASCII characters altogether as although
 it appears to be legal to feed unicode to a C++ compiler it is
 implementation defined what the compiler then does with it.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1736>
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 : 2017-02-16 18:49:57 UTC