[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' ar
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument |
Date: |
Fri, 5 May 2023 12:20:12 -0400 (EDT) |
Follow-up Comment #10, bug #64139 (project octave):
The test suite seems to be failing with clang compilers:
E.g.:
https://github.com/gnu-octave/octave/actions/runs/4895045937/jobs/8740091878#step:13:89949
>>>>> processing /home/runner/work/octave/octave/scripts/io/fileread.m
***** error <conversion from codepage 'unknownvalue' not supported>
fileread ("filename", "Encoding", "UnknownValue")
!!!!! error failed.
Expected <conversion from codepage 'unknownvalue' not supported>, but got
<fileread: cannot open file>
The actual issue might not be clang but libc++ with which conversion of
streams is currently turned off. In that case, `fopen` falls back to "UTF-8"
(with a warning) independent on which encoding was passed to `fopen` iirc.
We'd probably need to run that test only conditionally on `! __have_feature__
("LLVM_LIBCXX")`.
Maybe something along the lines of:
%!testif ; ! __have_feature__ ("LLVM_LIBCXX")
%! fail ('fileread ("filename", "Encoding", "UnknownValue")', ...
%! "conversion from codepage 'unknownvalue' not supported");
(Currently untested.)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64139>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64139] character encoding scheme with fileread, Guillaume, 2023/05/03
- [Octave-bug-tracker] [bug #64139] character encoding scheme with fileread, Markus Mützel, 2023/05/03
- [Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument, Markus Mützel, 2023/05/03
- [Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument, Guillaume, 2023/05/04
- [Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument, Markus Mützel, 2023/05/04
- [Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument, Markus Mützel, 2023/05/04
- [Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument, John W. Eaton, 2023/05/04
- [Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument, Guillaume, 2023/05/04
- [Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument, Guillaume, 2023/05/05
- [Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument, Markus Mützel, 2023/05/05
- [Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument,
Markus Mützel <=
- [Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument, Markus Mützel, 2023/05/05
- [Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument, Markus Mützel, 2023/05/06
- [Octave-bug-tracker] [bug #64139] fileread doesn't support 'encoding' argument, Markus Mützel, 2023/05/09