boost/tools
Daniel James 4f6ffb6105 Fix bug handling python and C++ strings.
Fixes #2860.

Merged revisions 51949 via svnmerge from 
https://svn.boost.org/svn/boost/trunk

........
  r51949 | danieljames | 2009-03-24 08:34:09 +0000 (Tue, 24 Mar 2009) | 21 lines
  
  Use our own escape character parser.
  
  We're currently using the spirit escaped character parser. This is a
  strict C parser and causes parse errors for code that we probably should
  accept, such as any hexadecimal encoded characters with a value greater
  than the maximum value of the current platform's 'char'.  This is \x7F
  on some platforms so it rejects '\x80' upwards. As well as rejecting
  characters that might be valid, it also means that quickbook will act
  differently on different platforms.
  
  In python strings, '\xaaa' is equivalent to '\xaa' + 'a', but the spirit
  parser interprets this as a character with value '0xaaa'. So we probably
  should accept these.
  
  I also think we should be liberal about what we accept. IMO it isn't our
  job to enforce correct C++/python, just to create a reasonable
  rendering of our input. So rather than write a parser which understands
  the various types of escapes, I just wrote one that ignores any
  character following a backslash.
  
  Refs #2860.
........


[SVN r52064]
2009-03-30 17:49:15 +00:00
..
bcp@deed3885d0 merge of cmake build files from trunk per beman 2009-01-24 18:57:20 +00:00
boostbook@6425f26f09 Merge most of the recent changes to quickbook and boostbook. 2009-03-14 11:42:38 +00:00
build@27092095dd Merge misc. changes from trunk, mostly minor documentation fixes. 2009-03-22 10:42:48 +00:00
common Some cleanup of tools documentation. Add boostbook redir file. Delete duplicate time_string.hpp. Repoint regression instructions to web site. 2007-11-25 17:12:42 +00:00
inspect@82d7a94e44 Merge misc. changes from trunk, mostly minor documentation fixes. 2009-03-22 10:42:48 +00:00
litre@564d4d8d30 Merged tools, system, filesystem from trunk at 41106 2007-11-15 16:31:06 +00:00
quickbook@ed6ff64dcc Fix bug handling python and C++ strings. 2009-03-30 17:49:15 +00:00
regression tools/regression: merge numerous changes from trunk 2008-12-15 12:16:41 +00:00
release Get ready for 1.37.0; build docs only in the posix tree, then copy to windows tree. 2008-10-20 13:42:11 +00:00
CMakeLists.txt merge of cmake build files from trunk per beman 2009-01-24 18:57:20 +00:00
index.html Merge misc. changes from trunk, mostly minor documentation fixes. 2009-03-22 10:42:48 +00:00
Jamfile.v2 Merge trunk changes from 41110. 2007-11-15 18:32:18 +00:00
make-cputime-page.pl (merge from head) Add/update copyrights+license (with help of a shell script). 2006-11-06 14:56:02 +00:00