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:
parent
09a91c6d5a
commit
b3c77889e4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue