Mercurial > octave
comparison bootstrap.conf @ 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 | 6948260b8fcf |
children | c89e1b6573e7 |
comparison
equal
deleted
inserted
replaced
28312:dddc6c2661bc | 28313:d13ad9dc9348 |
---|---|
115 unictype/ctype-punct | 115 unictype/ctype-punct |
116 unictype/ctype-space | 116 unictype/ctype-space |
117 unictype/ctype-upper | 117 unictype/ctype-upper |
118 unictype/ctype-xdigit | 118 unictype/ctype-xdigit |
119 unistd | 119 unistd |
120 unistr/u16-to-u8 | |
121 unistr/u32-to-u8 | |
120 unistr/u8-check | 122 unistr/u8-check |
121 unistr/u8-strmblen | 123 unistr/u8-strmblen |
122 unistr/u8-strmbtouc | 124 unistr/u8-strmbtouc |
125 unistr/u8-to-u16 | |
123 unistr/u8-to-u32 | 126 unistr/u8-to-u32 |
124 unlink | 127 unlink |
125 unsetenv | 128 unsetenv |
126 vasprintf | 129 vasprintf |
127 waitpid | 130 waitpid |