Boost C++ Libraries: Ticket #1736: Headers containing non ASCII characters cause MS VC to issue warning 4819 in some locales https://svn.boost.org/trac10/ticket/1736 <p> Some boost headers, including but not limited to, </p> <p> 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 </p> <p> Contain non ASCII characters within comments. Some of these are copyright symbols others are within people names. </p> <p> 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 </p> <p> 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" </p> <p> In the specific case this was found it was with a Japanese version of Windows using SHIFT-JIS. </p> <p> 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1736 Trac 1.4.3 Marshall Clow Tue, 01 Apr 2008 22:24:30 GMT <link>https://svn.boost.org/trac10/ticket/1736#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1736#comment:1</guid> <description> <p> There's an open support request on this as well - <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/597" title="#597: Support Requests: Non-basic-source-character-set characters conflict with MSVC (closed: duplicate)">#597</a> (<a class="ext-link" href="http://svn.boost.org/trac/boost/ticket/597"><span class="icon">​</span>http://svn.boost.org/trac/boost/ticket/597</a>). </p> <p> Replacing the "©" with "(c)" is easy; but the author's names are more problematic. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Wed, 02 Apr 2008 01:45:06 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1736#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1736#comment:2</guid> <description> <p> I have replaced the "©" with "(c)" in the following files (revision <a class="missing ticket">#43992</a>) - what other files offend the compiler? </p> <p> boost/archive/detail/auto_link_archive.hpp boost/archive/detail/auto_link_warchive.hpp boost/archive/detail/basic_config.hpp boost/archive/detail/decl.hpp boost/archive/detail/utf8_codecvt_facet.hpp boost/config/abi_prefix.hpp boost/config/abi_suffix.hpp boost/detail/utf8_codecvt_facet.hpp boost/interprocess/errors.hpp boost/numeric/conversion/bounds.hpp boost/numeric/conversion/cast.hpp boost/numeric/conversion/conversion_traits.hpp boost/numeric/conversion/converter.hpp boost/numeric/conversion/converter_policies.hpp boost/numeric/conversion/detail/bounds.hpp boost/numeric/conversion/detail/conversion_traits.hpp boost/numeric/conversion/detail/converter.hpp boost/numeric/conversion/detail/int_float_mixture.hpp boost/numeric/conversion/detail/is_subranged.hpp boost/numeric/conversion/detail/meta.hpp boost/numeric/conversion/detail/sign_mixture.hpp boost/numeric/conversion/detail/udt_builtin_mixture.hpp boost/numeric/conversion/int_float_mixture.hpp boost/numeric/conversion/int_float_mixture_enum.hpp boost/numeric/conversion/is_subranged.hpp boost/numeric/conversion/sign_mixture.hpp boost/numeric/conversion/sign_mixture_enum.hpp boost/numeric/conversion/udt_builtin_mixture.hpp boost/numeric/conversion/udt_builtin_mixture_enum.hpp boost/program_options/detail/utf8_codecvt_facet.hpp boost/serialization/config.hpp boost/tokenizer.hpp boost/utility/enable_if.hpp libs/detail/utf8_codecvt_facet.cpp libs/filesystem/example/mbpath.cpp libs/filesystem/src/utf8_codecvt_facet.hpp libs/filesystem/test/equivalent.cpp libs/iostreams/test/detail/utf8_codecvt_facet.cpp libs/iostreams/test/detail/utf8_codecvt_facet.hpp libs/numeric/conversion/test/bounds_test.cpp libs/numeric/conversion/test/converter_test.cpp libs/serialization/src/codecvt_null.cpp libs/serialization/test/test_decl.hpp libs/tokenizer/char_sep_example_1.cpp libs/tokenizer/char_sep_example_2.cpp libs/tokenizer/char_sep_example_3.cpp libs/tokenizer/examples.cpp libs/tokenizer/simple_example_1.cpp libs/tokenizer/simple_example_2.cpp libs/tokenizer/simple_example_3.cpp libs/tokenizer/simple_example_4.cpp libs/tokenizer/simple_example_5.cpp libs/utility/enable_if/test/constructors.cpp libs/utility/enable_if/test/dummy_arg_disambiguation.cpp libs/utility/enable_if/test/lazy.cpp libs/utility/enable_if/test/lazy_test.cpp libs/utility/enable_if/test/member_templates.cpp libs/utility/enable_if/test/namespace_disambiguation.cpp libs/utility/enable_if/test/no_disambiguation.cpp libs/utility/enable_if/test/partial_specializations.cpp </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Tue, 24 Jun 2008 16:11:53 GMT</pubDate> <title>owner set https://svn.boost.org/trac10/ticket/1736#comment:3 https://svn.boost.org/trac10/ticket/1736#comment:3 <ul> <li><strong>owner</strong> set to <span class="trac-author">Marshall Clow</span> </li> </ul> Ticket Marshall Clow Mon, 29 Sep 2008 22:19:53 GMT milestone changed https://svn.boost.org/trac10/ticket/1736#comment:4 https://svn.boost.org/trac10/ticket/1736#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket Marshall Clow Fri, 10 Oct 2008 15:47:23 GMT status changed https://svn.boost.org/trac10/ticket/1736#comment:5 https://svn.boost.org/trac10/ticket/1736#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> As far as I know, there are no © symbols in either the trunk or the release branch. </p> Ticket Marshall Clow Fri, 10 Oct 2008 15:47:59 GMT <link>https://svn.boost.org/trac10/ticket/1736#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1736#comment:6</guid> <description> <p> Missing word in the last comment: "As far as I know, there are NOW no © symbols" </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 07 Jun 2010 14:52:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1736#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1736#comment:7</guid> <description> <p> Couldn't we close this defect? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Mon, 07 Jun 2010 15:33:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1736#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1736#comment:8</guid> <description> <p> The inspect report now checks for non-ASCII characters. It says there are 50 files (although that might be 50 characters). But I don't think there's any value in keeping this open as the report is enough. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 29 Nov 2010 15:28:11 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1736#comment:9 https://svn.boost.org/trac10/ticket/1736#comment:9 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> I've closed it. Please be free to open a new ticket by component having an issue with non-ASCII characters. </p> Ticket