diff options
author | Brad King <brad.king@kitware.com> | 2016-01-07 18:13:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-01-07 18:13:51 (GMT) |
commit | 0a5ce85f602a70d166c2cdc1f2dad8aab9a85269 (patch) | |
tree | 3ba549120be38ef328b177a2460e3936c11b4d87 /Source/kwsys/FStream.cxx | |
parent | b021455e40f921ab3887dec8cde665838b92bd66 (diff) | |
parent | f2b0bf6e3f45f4f2a474732f29528299825bf7e9 (diff) | |
download | CMake-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.cxx | 2 |
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; } |