[Boost-bugs] [ boost-Bugs-1151823 ] boost::filesystem::native() should reject '/' on non-Win32

Bugs item #1151823, was opened at 2005-02-25 14:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1151823&group_id=7586 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jon Bright (sircus) Assigned to: Nobody/Anonymous (nobody) Summary: boost::filesystem::native() should reject '/' on non-Win32 Initial Comment: On Win32, filesystem::native() correctly checks paths for validity on Win32. For other systems, it just returns true, presumably on the theory that for Unix, anything goes. Unless I'm much mistaken though, the character '/' is not allowed in Unix filenames. As such, native() should be changed as follows: BOOST_FILESYSTEM_DECL bool native( const std::string &name ) { return name.find('/') == std::string::npos; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1151823&group_id=7586 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Boost-bugs mailing list Boost-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs
participants (1)
-
SourceForge.net