Mercurial > octave
changeset 26361:69cbbd2711ed stable
file-editor-tab.cc (check_valid_codec): Use function available prior to Qt 5.2.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 02 Jan 2019 13:25:01 +0100 |
parents | cd44edea6a31 |
children | e3dfcfc8bd6c |
files | libgui/src/m-editor/file-editor-tab.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc Tue Jan 01 22:22:15 2019 -0800 +++ b/libgui/src/m-editor/file-editor-tab.cc Wed Jan 02 13:25:01 2019 +0100 @@ -2337,7 +2337,7 @@ size_t length; char *res_str = octave_u32_conv_to_encoding_strict (_encoding.toStdString ().c_str (), - src, u32_str.length (), &length); + src, u32_str.size (), &length); if (! res_str) { if (errno == EILSEQ)