ucr::UNICODESET m_unicoding; /**< Unicode encoding. */
bool m_bom; /**< Unicode byte marker */
bool m_guessed; /**< Whether encoding was guessed from content */
- bool m_binary;
FileTextEncoding();
void Clear();
encoding.SetCodepage(ucr::getDefaultCodepage());
encoding.m_bom = false;
encoding.m_guessed = false;
- encoding.m_binary = false;
switch (fi.nByteOrder)
{
case 8 + 2 + 0:
break;
default:
encoding.m_bom = false;
- if (memchr(fi.pImage, 0, fi.cbImage))
- encoding.m_binary = true;
break;
}
if (fi.nByteOrder < 4 && guessEncodingType != 0)