summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/FStream.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-01-07 18:13:51 (GMT)
committerBrad King <brad.king@kitware.com>2016-01-07 18:13:51 (GMT)
commit0a5ce85f602a70d166c2cdc1f2dad8aab9a85269 (patch)
tree3ba549120be38ef328b177a2460e3936c11b4d87 /Source/kwsys/FStream.cxx
parentb021455e40f921ab3887dec8cde665838b92bd66 (diff)
parentf2b0bf6e3f45f4f2a474732f29528299825bf7e9 (diff)
downloadCMake-0a5ce85f602a70d166c2cdc1f2dad8aab9a85269.zip
CMake-0a5ce85f602a70d166c2cdc1f2dad8aab9a85269.tar.gz
CMake-0a5ce85f602a70d166c2cdc1f2dad8aab9a85269.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2016-01-07 (2418443e)
Diffstat (limited to 'Source/kwsys/FStream.cxx')
-rw-r--r--Source/kwsys/FStream.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/kwsys/FStream.cxx b/Source/kwsys/FStream.cxx
index 018652c..5a30997 100644
--- a/Source/kwsys/FStream.cxx
+++ b/Source/kwsys/FStream.cxx
@@ -34,6 +34,7 @@ BOM ReadBOM(std::istream& in)
in.read(reinterpret_cast<char*>(bom), 2);
if(!in.good())
{
+ in.clear();
in.seekg(orig);
return BOM_None;
}
@@ -68,6 +69,7 @@ BOM ReadBOM(std::istream& in)
in.seekg(p);
return BOM_UTF16LE;
}
+ in.clear();
in.seekg(orig);
return BOM_None;
}