$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] Code review for bug no. 5702
From: ullas srinivas (ullas_n_s_at_[hidden])
Date: 2014-11-04 01:21:39
Hi,
I have fixed bug no. 5702Â
Bug # 5702 : Filename isreturned within quotes instead without
Â
Description :Â In the reference (http://www.boost.org/doc/libs/1_47_0/libs/filesystem/v3/doc/reference.html#path-decomposition) it issaid that for example the filename returned by filename() will be without thequotes:
std::cout <<path("/foo/bar.txt").filename(); //outputs "bar.txt" (without the quotes)
But actually I'm getting anoutput with the filename enclosed in quotes like:
"bar.txt"
I'm using Windows Vista.
Â
Root Cause : Thefilename within quotes are due to printing of os << delim ; statement in
template <class Char, classTraits, class Alloc>
     std::basic_ostream<Char,Traits>&
     basic_string_inserter_imp(std::basic_ostream<Char, Traits>&os,
       std::basic_string<Char, Traits, Alloc> const& string, Char escape, Char delim) of boost\io\detail\quoted_manip.hpp
Fix : I have commented/removed os << delim; statementin
template <class Char, classTraits, class Alloc>
     std::basic_ostream<Char,Traits>&
     basic_string_inserter_imp(std::basic_ostream<Char, Traits>&os,
       std::basic_string<Char, Traits,Alloc> const & string, Char escape, Chardelim) of boost\io\detail\quoted_manip.hpp
I kindly request you to please find the patch file attached and review the bug.
Regards
Ullas