[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #66448] File encoding conversion errors on mac
From: |
Dmitri A. Sergatskov |
Subject: |
[Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14 |
Date: |
Sun, 17 Nov 2024 12:14:14 -0500 (EST) |
Follow-up Comment #8, bug #66448 (group octave):
I have noticed that my hg top was not up to date. (I was using hg.octave.org).
I recloned from savannah and now I see the same problems:
file-encoding/file-encoding.tst ................................ pass 4/11
FAIL 3
REGRESSION 4
and
>>>>> processing /Users/dmitri/src/octave/test/file-encoding/file-encoding.tst
***** test
help_str = get_help_text ("test_CP1252");
## The help text contains the string "ÄÖÜäöü ŠŽšž". Compare to
the
## corresponding UTF-8 byte sequence to make sure this test is independent
## of how this .tst file is interpreted.
ref_str = char ([195 132 195 150 195 156 195 164 195 182 195 188 32 ...
197 160 197 189 197 161 197 190]);
assert (strfind (help_str, ref_str));
!!!!! test failed
file_reader::get_input: converting from codepage 'windows-1252' to UTF-8:
Function not implemented
***** test
path_orig = path ();
unwind_protect
addpath ("CP1251");
help_str = get_help_text ("test_CP1251");
## The help text contains the string "ДЦЬдць ЉЋљћ". Compare to
the
## corresponding UTF-8 byte sequence to make sure this test is independent
## of how this .tst of how this .tst file is interpreted.
ref_str = char ([208 148 208 166 208 172 208 180 209 134 209 140 32 ...
208 137 208 139 209 153 209 155]);
assert (strfind (help_str, ref_str));
unwind_protect_cleanup
path (path_orig);
dir_encoding (canonicalize_file_name ("CP1251"), "delete");
end_unwind_protect
!!!!! test failed
file_reader::get_input: converting from codepage 'windows-1251' to UTF-8:
Function not implemented
***** test
clear all; # make sure files are re-parsed
path_orig = path ();
unwind_protect
addpath (canonicalize_file_name ("CP1251"));
help_str = get_help_text ("test_CP1251");
## The help text contains the string "ДЦЬдць ЉЋљћ". Compare to
the UTF-8
## byte sequence to make sure this test is independent of how this .tst
## file is interpreted.
ref_str = char ([208 148 208 166 208 172 208 180 209 134 209 140 32 ...
208 137 208 139 209 153 209 155]);
assert (strfind (help_str, ref_str));
unwind_protect_cleanup
path (path_orig);
dir_encoding (canonicalize_file_name ("CP1251"), "delete");
end_unwind_protect
!!!!! test failed
file_reader::get_input: converting from codepage 'windows-1251' to UTF-8:
Function not implemented
***** test <*62780>
## wrap in "evalc" to suppress output to the log
evalc ('oruntests (".");');
!!!!! regression: https://octave.org/testfailure/?62780
native2unicode: iconv() is not supported. Installing GNU libiconv and then
re-compiling Octave could fix this.
***** test <*62780>
unwind_protect
dir_encoding (canonicalize_file_name ("CP1251"), "windows-1251");
## use "evalc" to suppress output to the log
evalc ('oruntests ("CP1251");');
unwind_protect_cleanup
dir_encoding (canonicalize_file_name ("CP1251"), "delete");
end_unwind_protect
!!!!! regression: https://octave.org/testfailure/?62780
native2unicode: iconv() is not supported. Installing GNU libiconv and then
re-compiling Octave could fix this.
***** test <*62780>
old_mfile_encoding = mfile_encoding ("windows-1251");
unwind_protect
## use "evalc" to suppress output to the log
evalc ('oruntests ("CP1251");');
unwind_protect_cleanup
mfile_encoding (old_mfile_encoding);
end_unwind_protect
!!!!! regression: https://octave.org/testfailure/?62780
native2unicode: iconv() is not supported. Installing GNU libiconv and then
re-compiling Octave could fix this.
***** test <*62780>
path_orig = path ();
unwind_protect
addpath (canonicalize_file_name ("CP1251"));
## use "evalc" to suppress output to the log
evalc ('oruntests ("CP1251");');
unwind_protect_cleanup
path (path_orig);
dir_encoding (canonicalize_file_name ("CP1251"), "delete");
end_unwind_protect
!!!!! regression: https://octave.org/testfailure/?62780
native2unicode: iconv() is not supported. Installing GNU libiconv and then
re-compiling Octave could fix this.
>>>>> processing /Users/dmitri/src/octave/test/help/help.tst
>>>>> processing /Users/dmitri/src/octave/test/json/jsondecode.tst
>>>>> processing /Users/dmitri/src/octave/test/json/jsonencode.tst
***** testif HAVE_RAPIDJSON_PRETTYWRITER
data = {'Hello'; 'World!'};
exp = do_string_escapes ([ '[\n', ...
' "Hello",\n', ...
' "World!"\n', ...
']' ]);
obs = jsonencode (data, 'PrettyPrint', true);
assert (isequal (obs, exp));
exp = '["Hello","World!"]';
obs = jsonencode (data, 'PrettyPrint', false);
assert (isequal (obs, exp));
----- skipped test (missing feature)
***** testif HAVE_RAPIDJSON_PRETTYWRITER
data = [1, 2; 3, 4];
exp = do_string_escapes ([ ...
'[\n' ...
' [\n' ...
' 1,\n' ...
' 2\n' ...
' ],\n' ...
' [\n' ...
' 3,\n' ...
' 4\n' ...
' ]\n' ...
']' ]);
obs = jsonencode (data, 'PrettyPrint', true);
assert (isequal (obs, exp));
exp = '[[1,2],[3,4]]';
obs = jsonencode (data, 'PrettyPrint', false);
assert (isequal (obs, exp));
----- skipped test (missing feature)
>>>>> processing
>>>>> /Users/dmitri/src/octave/test/jupyter-notebook/jupyter-notebook.tst
% hg id
226a392f0818 @
Dmitri.
--
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66448>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14, Markus Mützel, 2024/11/15
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14, Markus Mützel, 2024/11/16
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14, Dmitri A. Sergatskov, 2024/11/16
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14, Dmitri A. Sergatskov, 2024/11/16
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14, Dmitri A. Sergatskov, 2024/11/16
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14, Dmitri A. Sergatskov, 2024/11/16
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14, Markus Mützel, 2024/11/17
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14, Dmitri A. Sergatskov, 2024/11/17
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14,
Dmitri A. Sergatskov <=
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14, Dmitri A. Sergatskov, 2024/11/17
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14, Markus Mützel, 2024/11/17
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14, Markus Mützel, 2024/11/18
- [Octave-bug-tracker] [bug #66448] File encoding conversion errors on macOS 14, Markus Mützel, 2024/11/18