[pkg-boost-devel] Bug#343491: libboost-filesystem-dev: copy_file
hate '#'?
LI Daobing
lidaobing at gmail.com
Thu Dec 15 16:35:36 UTC 2005
Package: libboost-filesystem-dev
Version: 1.33.0-5
Severity: important
rename do not has this bug.
$ cat copy_file.cpp
#include <boost/filesystem/operations.hpp>
using namespace boost::filesystem;
int main()
{
copy_file("bad", "#");
return 0;
}
$ g++ -o copy_file copy_file.cpp -lboost_filesystem
$ touch bad
$ ls -l bad
-rw-r--r-- 1 nichloas nichloas 0 2005-12-16 00:33 bad
$ ./copy_file
terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
what(): boost::filesystem::path: invalid name "#" in path: "#"
Aborted
$ g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)
$
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-686-smp
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages libboost-filesystem-dev depends on:
ii libboost-dev 1.33.0-5 Boost C++ Libraries development fi
ii libboost-filesystem1.33.0c2a 1.33.0-5 filesystem operations (portable pa
libboost-filesystem-dev recommends no packages.
-- debconf-show failed
More information about the pkg-boost-devel
mailing list