|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #57596] Should the "len" argument of "fgetl" and "fgets" mean bytes or characters |
Date: | Tue, 14 Jan 2020 03:32:28 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0 |
URL: <https://savannah.gnu.org/bugs/?57596> Summary: Should the "len" argument of "fgetl" and "fgets" mean bytes or characters Project: GNU Octave Submitted by: mmuetzel Submitted on: Tue 14 Jan 2020 09:32:26 AM CET Category: Interpreter Severity: 2 - Minor Priority: 5 - Normal Item Group: Incorrect Result Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: Any _______________________________________________________ Details: While implementing the encoding argument for fopen, the question arose of whether the "len" argument of "fgetl" and "fgets" should correspond to the number of bytes or the number of character entities that are read from an input stream. This is different for encodings that use multiple bytes to encode on single character (e.g. non-ASCII characters in UTF-8). _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?57596> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |