Skip to content

Conversation

@wdigger
Copy link

@wdigger wdigger commented May 26, 2016

No description provided.

@bagage
Copy link
Contributor

bagage commented May 26, 2016

Thanks for your pull request @wdigger! Just a question: in which case would you have file lines ending with \n\r or \r only? Because it seems to me that this is what your PR is solving, right?

@wdigger
Copy link
Author

wdigger commented May 26, 2016

On windows (VS 2015) read(...) from file opened in text mode removes all '\r' symbols from result buffer (size of result really smaller then real file size), but leaves garbage (uncleaned content with '\r\n') in the buffer end.

In fact error is occurred in other place, you may reject this request or i may to modify it with fix of bcRead.

@wdigger wdigger changed the title Fixed: line reading from file with mixed line endings Fixed: configuration file reading on windows May 27, 2016
@wdigger
Copy link
Author

wdigger commented May 27, 2016

String truncated with size of really readed data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants