In the JSON project there are the two following functions:
inline void Object::setEscapeUnicode(bool escape)
{
_escapeUnicode = true;
}
inline void Array::setEscapeUnicode(bool escape)
{
_escapeUnicode = true;
}
In both cases the argument is ignored and _escapeUnicode is set to true - even if you pass false as the value of the 'escape' argument.
These seem like bugs?
Also, as I have my release builds set to fail on warnings and these produce a compiler warning my build fails (which is how I found these)
Expected behavior
_escapeUnicode should be set to either true or false depending on the values passed.
Actual behavior
_escapeUnicode is always set to true
Steps to reproduce the problem
Compile with MS Visual Studio 6 with /WX option (treat warnings as errors)
POCO version
1.9.0
Compiler and version
MS Visual Studio 6
Operating system and version
MS Windows 7
Other relevant information
Building for MS Windows CE 6R3