Treat empty encoding as default '7-bit' (Zarafa).

This commit is contained in:
Vincent Richard 2008-07-11 21:33:18 +00:00
parent 30f0825877
commit 689f99f7a6

View File

@ -57,6 +57,9 @@ void encoding::parse(const string& buffer, const string::size_type position,
(utility::stringUtils::unquote(utility::stringUtils::trim
(string(buffer.begin() + position, buffer.begin() + end)))));
if (m_name.empty())
m_name = encodingTypes::SEVEN_BIT; // assume default "7-bit"
setParsedBounds(position, end);
if (newPosition)