INTEGRATION: CWS sb5 (1.6.10); FILE MERGED

2003/06/19 10:13:28 sb 1.6.10.1: #109236# Use RTL_TEXTENCODING_JAVA_UTF8 for strings passed to JNI functions.
This commit is contained in:
Jens-Heiner Rechtien 2003-08-07 13:36:35 +00:00
parent 7556d8c64b
commit 1fc60b0e21

View file

@ -2,9 +2,9 @@
* *
* $RCSfile: javaunohelper.cxx,v $ * $RCSfile: javaunohelper.cxx,v $
* *
* $Revision: 1.6 $ * $Revision: 1.7 $
* *
* last change: $Author: rt $ $Date: 2003-04-23 17:13:10 $ * last change: $Author: hr $ $Date: 2003-08-07 14:36:35 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
@ -347,7 +347,8 @@ Java_com_sun_star_comp_helper_RegistryServiceFactory_createRegistryServiceFactor
jclass c = pJEnv->FindClass( "com/sun/star/uno/RuntimeException" ); jclass c = pJEnv->FindClass( "com/sun/star/uno/RuntimeException" );
if (0 != c) if (0 != c)
{ {
OString cstr( ::rtl::OUStringToOString( exc.Message, RTL_TEXTENCODING_ASCII_US ) ); OString cstr( ::rtl::OUStringToOString(
exc.Message, RTL_TEXTENCODING_JAVA_UTF8 ) );
OSL_TRACE( __FILE__": forwarding Exception: %s", cstr.getStr() ); OSL_TRACE( __FILE__": forwarding Exception: %s", cstr.getStr() );
pJEnv->ThrowNew( c, cstr.getStr() ); pJEnv->ThrowNew( c, cstr.getStr() );
} }