Boost logo

Boost Users :

From: Jurko Gospodnetiæ (jurko.gospodnetic_at_[hidden])
Date: 2007-07-01 13:06:51


   Hi.

   Boost.Filesystem's path::normalize() function does not remove the
trailing '\\.' element and my guess is that it should.

   I'm using Boost 1.34.0 on Windows XP sp2 with MSVC 7.1.

   Some expected normalization examples:
     '.' --> '.'
     '\\' --> '\\'
     'aaa\\..' --> '.'
     'aaa\\bbb\\..' --> 'aaa'
     'aaa' --> 'aaa'

   Some unexpected normalization examples:
     '\\.' --> '\\.' (expected '\\' )
     'aaa\\..\\.' --> '.\\.' (expected '.' )
     'aaa\\..\\.\\.' --> '.\\.' (expected '.' )
     'aaa\\..\\.\\.\\.' --> '.\\.' (expected '.' )
     'aaa\\bbb\\..\\.' --> 'aaa\\.' (expected 'aaa')
     'aaa\\.' --> 'aaa\\.' (expected 'aaa')

   Hope this helps...

   Best regards,
     Jurko Gospodnetiæ


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net