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:
parent
7556d8c64b
commit
1fc60b0e21
1 changed files with 4 additions and 3 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $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
|
||||
* 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" );
|
||||
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() );
|
||||
pJEnv->ThrowNew( c, cstr.getStr() );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue