Boost logo

Boost Users :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2004-12-28 17:41:47


At 04:04 PM 12/26/2004, Tiziano Müller wrote:
>Hi all
>
>I'm developing a little application (at the moment with VS.NET), using
>the boost::filesystem part to keep it portable.
>In the code I use the is_directory() function which fails unexpected
>when testing files with special characters ("little squares") in it.
>I tracked it down to the GetFileAttributesA-function which gives the
>error 123 ("The filename, directory name, or volume label syntax is
>incorrect.").
>After reading some pages in the internet, I assume that the only two
>solutions would be a) rename all those files first or b) make an own
>solution with the (unicode-enabled) function GetFileAttributesW which
>makes my app less portable (and will give me some headaches again).
>
>Is there a better solution?

Hum. Are you saying that the file (or directory) name was created with one
codepage, and can't be accessed with the current filesystem codepage? But
I'm not sure that would produce the error you indicate.

Could you be a bit more specific so I can recreate the problem on my
machine?

Thanks,

--Beman


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