Commit 84b34935 authored by Brad King's avatar Brad King

BUG: File must be opened in binary mode on windows.

parent 6dbf66c2
......@@ -27,7 +27,7 @@
#define VTK_IOS_NOCREATE | ios::nocreate
#endif
vtkCxxRevisionMacro(vtkXMLParser, "1.9");
vtkCxxRevisionMacro(vtkXMLParser, "1.10");
vtkStandardNewMacro(vtkXMLParser);
//----------------------------------------------------------------------------
......@@ -80,7 +80,11 @@ int vtkXMLParser::Parse()
if ( !this->InputString && !this->Stream && this->FileName )
{
// If it is file, open it and set the appropriate stream
#ifdef _WIN32
ifs.open(this->FileName, ios::binary | ios::in VTK_IOS_NOCREATE);
#else
ifs.open(this->FileName, ios::in VTK_IOS_NOCREATE);
#endif
if ( !ifs )
{
vtkErrorMacro("Cannot open XML file: " << this->FileName);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment