Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorbjörn SVENSSON2021-04-08 15:32:53 +0000
committerTorbjörn Svensson2021-04-10 18:44:44 +0000
commit450e0cac52e15b2e7714cc4193ab45ceab1d6efd (patch)
tree97874520c6e2999c1190a3172ec36aa3ac35d552 /upc/org.eclipse.cdt.core.parser.upc.tests/src/org
parent549b9d00c08a7341d388bd4eafc8b2c9b8813f57 (diff)
downloadorg.eclipse.cdt-450e0cac52e15b2e7714cc4193ab45ceab1d6efd.tar.gz
org.eclipse.cdt-450e0cac52e15b2e7714cc4193ab45ceab1d6efd.tar.xz
org.eclipse.cdt-450e0cac52e15b2e7714cc4193ab45ceab1d6efd.zip
Bug 572749: Try to always show error in English in exception
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 'upc/org.eclipse.cdt.core.parser.upc.tests/src/org')
0 files changed, 0 insertions, 0 deletions

Back to the top