Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

ARIFetch Fails on String Conversion #7

Open
helje5 opened this issue Jun 27, 2014 · 0 comments
Open

ARIFetch Fails on String Conversion #7

helje5 opened this issue Jun 27, 2014 · 0 comments

Comments

@helje5
Copy link
Owner

helje5 commented Jun 27, 2014

When ARIFetch receives a full read-buffer (4096 bytes), it sometimes stops. This is because the read() might end within an UTF-8 sequence (the UTF-8 decoding will fail and the non-optional withCString will just abort).

Solution: I think we need to check the buffer some bytes backwards for an UTF-8 marker, and then concatenate the results until something valid is constructed.
Or for the demo, we just build one big byte buffer, and then log it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant