diff options
author | Torbjörn SVENSSON | 2021-04-08 15:32:53 +0000 |
---|---|---|
committer | Torbjörn Svensson | 2021-04-10 18:44:44 +0000 |
commit | 450e0cac52e15b2e7714cc4193ab45ceab1d6efd (patch) | |
tree | 97874520c6e2999c1190a3172ec36aa3ac35d552 /releng/org.eclipse.cdt.releng/dsfgdb | |
parent | 549b9d00c08a7341d388bd4eafc8b2c9b8813f57 (diff) | |
download | org.eclipse.cdt-master.tar.gz org.eclipse.cdt-master.tar.xz org.eclipse.cdt-master.zip |
The ThrowNew JNI method requires the message to be encoded in
"modified UTF-8". The FormatMessage WinAPI method can return a string
using any encoding, so it needs to be converted to UTF-8 in order
to have it visible in the exception message.
To further help, try to extract the message in English and fall back
to the Windows installation language as a last resort.
Prefix the error message with the error code from the GetLastError()
function.
Contributed by STMicroelectronics
Change-Id: Id76ffd83e2d3ad1f061780c7ee0892c9b378649b
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
Diffstat (limited to 'releng/org.eclipse.cdt.releng/dsfgdb')
0 files changed, 0 insertions, 0 deletions