[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54170] java.lang.String.toCharArray result in
From: |
Andrew Janke |
Subject: |
[Octave-bug-tracker] [bug #54170] java.lang.String.toCharArray result incorrect conversion to char matrix |
Date: |
Thu, 19 Jul 2018 00:35:13 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 |
Follow-up Comment #16, bug #54170 (project octave):
I'm having second thoughts about my patch here. It avoids the crash, but it
produces bogus data and/or muddies the semantics of Octave `char`.
I think the right thing to do for the time being might be to raise an error
when trying to convert Java char[] to Octave char, and have it tell the user
to instead convert the Java char[] to a Java String and convert that, or
convert the Java char[] to Octave uint16. And provide a uint16(Java char[])
conversion to do so.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54170>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/