Overview
| Artifact ID: | edbb8d5493c7cd4fcaa9120de00cc78a46031668 |
|---|---|
| Ticket: | 879a0747bee593e2cd0f531fa723f5f5d5595527
Incomplete multibyte char @eof -> failed read |
| User & Date: | ferrieux on 2015-04-24 22:22:37 |
Changes
- closer changed to: "nobody"
- icomment:
Reopening because I think there's still something wrong: -assume we're doing a kind of "tail -f" (purpose of fleeting EOF) on a file that we opened with encoding utf-8 -assume another process slowly writes to it the subsequent two bytes \xC3 and \xA9 => our reader gets two subsequent characters "Ã" and "©" -replay the same scenario but with the two bytes already in, or written fast enough that the reader gets both in one shot => our reader gets the single char "é" So it seems that when the fleeting EOF happens in mid-multibyte, the truncated sequence is somehow mapped to a character. Instead, it should be stored in internal state, and no character should be returned until the sequence completes. Easier said than done, I'll admit.
- login: "ferrieux"
- mimetype: "text/plain"
- status changed to: "Open"