- Notifications
You must be signed in to change notification settings - Fork767
Use stream position instead of counting read bytes.#199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
FileStream.Read returns (bytes read, buffer), not just bytes read as thebuffer is passed by reference. This is a bit unintuative, but checking theposition is clear and less error prone.
stonebig commentedApr 4, 2016
so now:
.... you may have not saved as utf-8 ? (with a BOM or not, I don't think it changes the loss of the "€") Still, Awesome progress (I don't know if the last issue is Pythonnet related or an example that gets too complicated, if it's just an example issue, I'm dying to get that dev2) |
tonyroberts commentedApr 4, 2016
Right, well I think as a demo it's now adequately showing how Python and c#
|
stonebig commentedApr 4, 2016
no problem, thanks! |
den-run-ai commentedApr 4, 2016
@stonebig@tonyroberts - this demo also has to be adapted to python 3 for On Mon, Apr 4, 2016 at 1:22 PM, stonebignotifications@github.com wrote:
|
stonebig commentedApr 4, 2016
trying to get this example working in all current combinations could drown the project resources. |
FileStream.Read returns (bytes read, buffer), not just bytes read as the
buffer is passed by reference. This is a bit unintuative, but checking the
position is clear and less error prone.