octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55452] fopen() does not support encoding argu


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #55452] fopen() does not support encoding argument
Date: Sat, 9 Mar 2019 12:37:15 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Update of bug #55452 (project octave):

                  Status:          Ready For Test => In Progress            

    _______________________________________________________

Follow-up Comment #14:

I forgot that "textscan" has been worked on already (see comment #5).

Could you please try with the attached patch. It should fix the weird error
message and add preliminary support for "fgetl".

I was wondering about format strings like "äöü %s %.3f", i.e. format
strings that don't consist exclusively of format specifiers. We probably would
have to somehow detect which parts of the format string are specifiers and
convert only the remaining parts before we pass the string to the C
functions.
Unless, "%s" (or any other format specifier) encodes to the same byte sequence
in these encodings as it would in ASCII (like it does for UTF-8).
Supporting UTF-16 or UTF-32 probably just gets weird. Maybe we should defer
those to later.

(file #46477)
    _______________________________________________________

Additional Item Attachment:

File name: bug55452_fgetl.diff            Size:1 KB
    <https://savannah.gnu.org/file/bug55452_fgetl.diff?file_id=46477>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55452>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]