Boost C++ Libraries: Ticket #9099: boost::filesystem::stem() reporting wrong value on some entries (seen on Linux) https://svn.boost.org/trac10/ticket/9099 <p> Compiled with gcc on Linux. </p> <p> Consider the following example with an empty string as path: </p> <pre class="wiki"> boost::filesystem::path mypath(""); cout &lt;&lt; mypath.parent_path().native() &lt;&lt; endl; cout &lt;&lt; mypath.stem().native() &lt;&lt; endl; </pre><p> This will print out, as expected, two empty strings. If one now changes the path to be analysed into "tmp/", like this: </p> <pre class="wiki"> boost::filesystem::path mypath("tmp/"); cout &lt;&lt; mypath.parent_path().native() &lt;&lt; endl; cout &lt;&lt; mypath.stem().native() &lt;&lt; endl; </pre><p> then the output will be "tmp" on one line (totally expected and correct) and "." on the next line (totally unexpected and wrong, it should be an empty string). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9099 Trac 1.4.3