Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6187: boost::filesystem::exists will thought a string is which include zero, is a file, exactly is the file is not exist.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-11-24 20:38:03
#6187: boost::filesystem::exists will thought a string is which include zero, is a
file, exactly is the file is not exist.
-----------------------------------------+------------------------
Reporter: js1011 <jiangshui584520@â¦> | Owner: bemandawes
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.48.0 | Severity: Problem
Resolution: invalid | Keywords: filesystem
-----------------------------------------+------------------------
Changes (by bemandawes):
* status: new => closed
* resolution: => invalid
Comment:
It isn't the job of class path to decide on validity of strings passed to
it.
Asian character encodings may have embedded '\0' characters. Shift-JIS is
an example, IIRC. If you know the encoding of a string that is going to be
used as a path, you could check it for validity before passing it to a
path.
Thanks,
--Beman
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6187#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC