summaryrefslogtreecommitdiff
path: root/project2/fileStrmVarWriter.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-06-28 18:06:08 +0000
committerrandomdan <randomdan@localhost>2011-06-28 18:06:08 +0000
commit18da28c9afa3a98cee7c5129c9d8042b6604b687 (patch)
treec4e28b0b8f4defb4fa696a0c448b4b3c0bf784a9 /project2/fileStrmVarWriter.cpp
parentRemove unneeded #include which required ODBC to be install (diff)
downloadproject2-18da28c9afa3a98cee7c5129c9d8042b6604b687.tar.bz2
project2-18da28c9afa3a98cee7c5129c9d8042b6604b687.tar.xz
project2-18da28c9afa3a98cee7c5129c9d8042b6604b687.zip
Build fsRows against both versions 2 and 3 of boost::filesystem
Fix 64bit compat issue in fileStrmVarWriter
Diffstat (limited to 'project2/fileStrmVarWriter.cpp')
-rw-r--r--project2/fileStrmVarWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/fileStrmVarWriter.cpp b/project2/fileStrmVarWriter.cpp
index f2c8d7f..8f3ca5c 100644
--- a/project2/fileStrmVarWriter.cpp
+++ b/project2/fileStrmVarWriter.cpp
@@ -49,10 +49,10 @@ void FileStreamVariableWriter::operator()(const double & i) const {
fprintf(out, "%g", i);
}
void FileStreamVariableWriter::operator()(const Glib::ustring & i) const {
- fprintf(out, "'%.*s'", i.bytes(), i.c_str());
+ fwrite(i.c_str(), i.bytes(), 1, out);
}
void FileStreamVariableWriter::operator()(const boost::shared_ptr<const Glib::ustring> & i) const {
- fprintf(out, "'%.*s'", i->bytes(), i->c_str());
+ fwrite(i->c_str(), i->bytes(), 1, out);
}
void FileStreamVariableWriter::operator()(const boost::posix_time::ptime & i) const {
fprintf(out, "[%s]", boost::posix_time::to_iso_extended_string(i).c_str());