Mercurial > octave-libtiff
view NEWS @ 28313:d13ad9dc9348
Store character vectors in .mat files (-v6 or -v7) as UTF-16 (bug #58368).
* ls-mat5.cc (read_mat5_binary_element): Convert UTF-16 and UTF-32 vectors to
UTF-8. Take UTF-8 as is. Fall back to replacing non-ASCII characters with "?"
for non-convertable strings or ND arrays.
(maybe_convert_to_u16): Add function that converts a string vector to UTF-16.
(save_mat5_element_length): Get correct length if string is converted.
(save_mat5_binary_element): Convert character vectors to UTF-16 to be able to
correctly load them in Matlab if they contain non-ASCII characters.
* load-save.cc: Add tests for saving and loading different types of strings.
* unistr-wrappers.h, unistr-wrappers.cc (octave_u16_to_u8_wrapper,
octave_u32_to_u8_wrapper, octave_u8_to_u16_wrapper): New wrappers for gnulib
functions.
* bootstrap.conf: Add gnulib modules to list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 15 May 2020 23:03:24 +0200 |
parents | a81b7b132c09 |
children | bc904ed5aad4 |
line wrap: on
line source
Summary of important user-visible changes for version 7 (yyyy-mm-dd): ---------------------------------------------------------------------- ### General improvements - Many functions in Octave can be called in a command form---no parentheses for invocation and no return argument assignment---or in a functional form---parentheses and '=' for assignment of return values. Command Form Example `mkdir new_directory` Function Form Example `status = mkdir ("new_directory")` Octave now handles errors that occur in a consistent manner. If called in command form and there is a failure, an error is thrown and a message printed. If called in functional form, no error or message is printed and the failure is communicated to the programmer via the output status variable. The following list of functions have been modified. * `copyfile` * `fcntl` * `fileattrib` * `kill` * `link` * `mkfifo` * `movefile` * `rename` * `rmdir` * `symlink` * `unlink` ### Graphics backend - Support for Qt4 for graphics and the GUI has been removed. - The placement of text subscripts and superscripts has been re-engineered and now produces visually attractive results similar to Latex. ### Matlab compatibility - The function `griddata` now implements the "v4" Biharmonic Spline Interpolation method. In adddition, the function now accepts 3-D inputs by passing the data to `griddata3`. - Coordinate transformation functions `cart2sph`, `sph2cart`, `cart2pol`, and `pol2cart` can now accept either row or column vectors for coordinate inputs. A single coordinate matrix with one variable per column can still be used as function input, but a single output variable will now contain just the first output coordinate, and will no longer return the full output coordinate matrix. Output size matches the size of input vectors, or in the case of an input matrix will be column vectors with rows corresponding to the input coordinate matrix. - The function `dec2bin` and `dec2hex` now support negative numbers. - `uicontrol` objects now fully implement the "Off" and "Inactive" values of the "Enable" property. When the value is "Off", no interaction with the object occurs and the `uicontrol` changes color (typically to gray) to indicate it is disabled. When the value is "Inactive", the object appears normally (no change in color), but it is not possible to change the value of the object (such as modifying text in an `Edit` box or clicking on a `RadioButton`). - The functions `scatter` and `scatter3` now return a handle to a scatter graphics object. For compatibility, they return a hg group of patch graphics objects when the "gnuplot" graphics toolkit is used. In previous versions of Octave, these functions returned a hg group of patch graphics objects for all graphics toolkits. ### Alphabetical list of new functions added in Octave 7 * `endsWith` * `rng` * `startsWith` ### Deprecated functions and properties The following functions and properties have been deprecated in Octave 7 and will be removed from Octave 9 (or whatever version is the second major release after 7): - Functions Function | Replacement -----------------------|------------------ | - Properties Object | Property | Value -----------------|---------------|------------ | | ### Removed functions and properties The following functions and properties were deprecated in Octave 5 and have been removed from Octave 7. - Functions Function | Replacement -------------------------|------------------ `output_max_field_width` | `output_precision` `is_keyword` | `iskeyword` - Properties Object | Property | Value -----------------|---------------|------------ `text` | `fontangle` | `"oblique"` `uibuttongroup` | `fontangle` | `"oblique"` `uicontrol` | `fontangle` | `"oblique"` `uipanel` | `fontangle` | `"oblique"` `uitable` | `fontangle` | `"oblique"` ### Old release news - [Octave 6.x](etc/NEWS.6) - [Octave 5.x](etc/NEWS.5) - [Octave 4.x](etc/NEWS.4) - [Octave 3.x](etc/NEWS.3) - [Octave 2.x](etc/NEWS.2) - [Octave 1.x](etc/NEWS.1)