< prev index next >

src/java.base/share/native/libjava/jni_util.c

Print this page
rev 49551 : 8201246: Export native function to set platform encoding
Contributed-by: andrew_m_leonard@uk.ibm.com
Reviewed-by: tbd

@@ -772,12 +772,14 @@
     }
 
     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;
 
     if ((*env)->EnsureLocalCapacity(env, 3) < 0)
< prev index next >