mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-27 13:33:17 +08:00
Compilation fix, renamed format_write_bom to format_write_bom_utf8
git-svn-id: http://pugixml.googlecode.com/svn/trunk@96 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
d2443e8948
commit
e59c153d97
@ -2605,13 +2605,10 @@ namespace pugi
|
||||
std::ofstream out(name, std::ios::out);
|
||||
if (!out) return false;
|
||||
|
||||
if (flags & format_write_bom)
|
||||
if (flags & format_write_bom_utf8)
|
||||
{
|
||||
if (flags & format_utf8)
|
||||
{
|
||||
static const unsigned char utf8_bom[] = {0xEF, 0xBB, 0xBF};
|
||||
out.write(reinterpret_cast<const char*>(utf8_bom), 3);
|
||||
}
|
||||
static const unsigned char utf8_bom[] = {0xEF, 0xBB, 0xBF};
|
||||
out.write(reinterpret_cast<const char*>(utf8_bom), 3);
|
||||
}
|
||||
|
||||
out << "<?xml version=\"1.0\"?>";
|
||||
|
@ -179,7 +179,7 @@ namespace pugi
|
||||
*
|
||||
* This flag is off by default.
|
||||
*/
|
||||
const unsigned int format_write_bom = 0x02;
|
||||
const unsigned int format_write_bom_utf8 = 0x02;
|
||||
|
||||
/**
|
||||
* If this flag is on, no indentation is performed and no line breaks are written to output file.
|
||||
|
Loading…
x
Reference in New Issue
Block a user