8201246: Export native function to set platform encoding

Reviewed-by: rriggs
This commit is contained in:
Andrew M Leonard 2018-04-10 10:49:17 -04:00 committed by Roger Riggs
parent c40af49970
commit 0eff8e94f0
2 changed files with 5 additions and 3 deletions

View file

@ -774,8 +774,10 @@ newStringUTF8(JNIEnv *env, const char *str)
return newSizedStringJava(env, str, len);
}
/* Initialize the fast encoding from the encoding name. */
void
/* Initialize the fast encoding from the encoding name.
* Export InitializeEncoding so that the VM can initialize it if required.
*/
JNIEXPORT void
InitializeEncoding(JNIEnv *env, const char *encname)
{
jclass strClazz = NULL;