possible problem with JNI GetStringUTFChars
martinrb at google.com
Sat Jan 26 21:39:31 UTC 2019
On Sat, Jan 26, 2019 at 11:39 AM Alan Snyder <javalists at cbfiddle.com> wrote:
> Therefore, my needs would be met by a (new) primitive that returns UTF-8
> and fails if the String contains NUL.
Maybe your programs are always running in a UTF-8 locale and maybe most
computing environments have migrated to UTF-8 (good!), BUT:
- that's hardly universal
- macosx has stricter requirements - it uses filenames normalized in a
- Windows may prefer UTF-16 encoded text.
More information about the core-libs-dev