[Boost-bugs] [Boost C++ Libraries] #12079: Infinite loop in boost:: filesystem::directory_iterator

Subject: [Boost-bugs] [Boost C++ Libraries] #12079: Infinite loop in boost:: filesystem::directory_iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-19 21:09:05


#12079: Infinite loop in boost:: filesystem::directory_iterator
----------------------------------+------------------------
 Reporter: alexb.x42@… | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost Release Branch | Severity: Problem
 Keywords: |
----------------------------------+------------------------
 Debian Jessie (GLIBC 2.19)

 I have an NTFS partition created in Windows.
 On that partition there is a file with very long filename that contains
 Cyrillic characters:
 D:\test\очень_длинное_имя_для_файла_очень_длинное_имя_для_файла_очень_длинное_имя_для_файла_очень_длинное_имя_для_файла_очень_длинное_имя_для_файла_очень_длинное_имя_для_файла_очень_длинное_имя_для_файла_очень_длинное_имя_для_файла_очень_длинное_имя_для_Ñ„.txt

 I attached this partition to my linux box and mounted it to
 /media/sk1ff/EEBEDC27BEDBE65D/.
 So, when I execute the following simple piece of code:
 {{{#!c++
   fs::directory_iterator it("/media/sk1ff/EEBEDC27BEDBE65D/test"),
 dir_end;
   for (; it != dir_end; ++it)
   {
     std::cout << it->path() << std::endl;
   }
 }}}
 it falls into an infinite loop.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12079>
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:19 UTC