Changeset 6313 for branches/1.7/src/core/RpLibrary.cc
- Timestamp:
- May 4, 2016, 11:27:36 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7/src/core/RpLibrary.cc
r5679 r6313 1791 1791 1792 1792 // check for binary data 1793 // FIXME: I've already appended a NUL-byte ofthis assuming that1793 // FIXME: I've already appended a NUL-byte to this assuming that 1794 1794 // it's a ASCII string. This test must come before. 1795 1795 if (Rappture::encoding::isBinary(value.c_str(), value.length())) { … … 2047 2047 return *this; 2048 2048 } 2049 if (compress == RPLIB_COMPRESS) { 2049 if ((compress == RPLIB_COMPRESS) || 2050 (Rappture::encoding::isBinary(fileBuf.bytes(), fileBuf.size()))) { 2050 2051 putData(path, fileBuf.bytes(), fileBuf.size(), append); 2051 2052 } else {
Note: See TracChangeset
for help on using the changeset viewer.