diff options
Diffstat (limited to 'FStream.cxx')
-rw-r--r-- | FStream.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/FStream.cxx b/FStream.cxx index 018652c..5a30997 100644 --- a/FStream.cxx +++ b/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; } |