Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69300 - branches/quickbook-filenames/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2011-02-26 06:18:00


Author: danieljames
Date: 2011-02-26 06:17:53 EST (Sat, 26 Feb 2011)
New Revision: 69300
URL: http://svn.boost.org/trac/boost/changeset/69300

Log:
Some fixes for windows.
Text files modified:
   branches/quickbook-filenames/tools/quickbook/src/actions.cpp | 6 ++++--
   branches/quickbook-filenames/tools/quickbook/src/value_tags.hpp | 4 ++--
   2 files changed, 6 insertions(+), 4 deletions(-)

Modified: branches/quickbook-filenames/tools/quickbook/src/actions.cpp
==============================================================================
--- branches/quickbook-filenames/tools/quickbook/src/actions.cpp (original)
+++ branches/quickbook-filenames/tools/quickbook/src/actions.cpp 2011-02-26 06:17:53 EST (Sat, 26 Feb 2011)
@@ -184,7 +184,7 @@
             boost::lexical_cast<std::string>(pos.column));
 
         detail::outerr(actions.filename, pos.line)
- << formatted_message << std::endl;
+ << detail::utf8(formatted_message) << std::endl;
         ++actions.error_count;
     }
 
@@ -634,7 +634,9 @@
             if(!attributes.insert(std::make_pair(name.get_quickbook(), value)).second)
             {
                 detail::outwarn(actions.filename, name.get_position().line)
- << "Duplicate image attribute: " << name.get_quickbook() << std::endl;
+ << "Duplicate image attribute: "
+ << detail::utf8(name.get_quickbook())
+ << std::endl;
             }
         }
         

Modified: branches/quickbook-filenames/tools/quickbook/src/value_tags.hpp
==============================================================================
--- branches/quickbook-filenames/tools/quickbook/src/value_tags.hpp (original)
+++ branches/quickbook-filenames/tools/quickbook/src/value_tags.hpp 2011-02-26 06:17:53 EST (Sat, 26 Feb 2011)
@@ -30,7 +30,7 @@
                 return "null"; \
             BOOST_PP_SEQ_FOR_EACH(QUICKBOOK_VALUE_CASE, _, values) \
             default: \
- assert(false); \
+ assert(false); return ""; \
             }; \
         } \
         \
@@ -55,7 +55,7 @@
                 return "null"; \
             BOOST_PP_SEQ_FOR_EACH(QUICKBOOK_VALUE_NAMED_CASE, _, values) \
             default: \
- assert(false); \
+ assert(false); return ""; \
             }; \
         } \
         \


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk