You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/06/29 14:01:58 UTC
svn commit: r789302 -
/commons/sandbox/runtime/trunk/src/main/native/test/testcase.c
Author: mturk
Date: Mon Jun 29 12:01:58 2009
New Revision: 789302
URL: http://svn.apache.org/viewvc?rev=789302&view=rev
Log:
Fix UTF-8 test
Modified:
commons/sandbox/runtime/trunk/src/main/native/test/testcase.c
Modified: commons/sandbox/runtime/trunk/src/main/native/test/testcase.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/test/testcase.c?rev=789302&r1=789301&r2=789302&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/test/testcase.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/test/testcase.c Mon Jun 29 12:01:58 2009
@@ -155,10 +155,10 @@
ACR_JNI_EXPORT_DECLARE(jint, TestPrivate, test010)(ACR_JNISTDARGS, jstring s)
{
jint l;
- char *str = ACR_GetJavaStringA(_E, s, NULL);
- l = (jint)strlen(str);
- ACR_Free(_E, THROW_FMARK, str);
+ WITH_USTR(s) {
+ l = (jint)strlen(J2S(s));
+ } END_WITH_USTR(s);
return l;
}