[foreign-memaccess+abi] RFR: 8308858: FFM API and strings [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Jun 8 11:26:12 UTC 2023


On Thu, 8 Jun 2023 10:14:37 GMT, Christoph Läubrich <duke at openjdk.org> wrote:

> At least ASCII and the Windows-1252 are quite common in C so maybe UTF-8 is superior but not always desired? Beside that there is also "Pascal" encoding with 8-bit and 16-bit encoded :-D

I'm not too worried about ASCII since in most cases it's a subset of other encodings - e.g. using UTF-8 to write an ASCII string should work out just fine. Problem with Windows-1252 is/will be more common though.

It's almost as if, for the basic `getMultiByteString` method, we wanted to use whatever is "native.encoding" set to (which is OS-specific).

-------------

PR Comment: https://git.openjdk.org/panama-foreign/pull/836#issuecomment-1582407240


More information about the panama-dev mailing list