Workaround IBM XL v6 streams seekg bug (#13149)

It seems that file.seekg(0) will, in some circumstances, cause the next
file.getline() to omit the first character it reads.  Workaround the
bug by seeking from ios::beg explicitly.
This commit is contained in:
Jim Hague 2012-04-19 14:25:55 -04:00 committed by Brad King
parent 09a91c6d5a
commit b3c77889e4
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ bool cmFileCommand::HandleReadCommand(std::vector<std::string> const& args)
offset = atoi(offsetArg.GetCString());
}
file.seekg(offset);
file.seekg(offset, std::ios::beg); // explicit ios::beg for IBM VisualAge 6
std::string output;