https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39180
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
--- Comment #1 from gnu_andrew at member dot fsf dot org 2009-02-13 17:45
---
Created an attachment (id=17294)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17294action=view)
Preliminary patch, has issues with the returned string reading from the wrong
memory location
Preliminary
--- Comment #2 from tromey at gcc dot gnu dot org 2009-02-13 17:54 ---
This line looks fishy:
+ boffset = cbuf-position();
boffset is a byte offset from the start of 'data' to the first character.
So, you probably need to multiply by sizeof(jchar) and also add in
the size of