|
Boost Users : |
From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2007-01-22 10:30:22
________________________________________
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of ????? ????????
Sent: Friday, January 19, 2007 10:41 AM
To: boost-users_at_[hidden]
Subject: [Boost-users] [filesystem] code pages support
namespace fs = boost :: filesystem;
boost :: intmax_t filesize = fs :: file_size (argv [1]);
This causes an exception if the name consists of cyrillic symbols. (Windows XP, MinGW). Does boost :: filesystem support these names.
[Nat] Maybe try:
boost :: intmax_t filesize = fs :: file_size (fs::path(argv [1], fs::no_check));
This uses an explicit conversion to fs::path rather than an implicit one, which allows you to explicitly disable the path syntax checker.
I always disable the path syntax checker. It doesn't even support ASCII names well. ;-)
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