summaryrefslogtreecommitdiff
path: root/javaunohelper
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-08-07 13:36:35 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-08-07 13:36:35 +0000
commit1fc60b0e21be763ee4ec2f6e41eba1f0980beb6f (patch)
tree6ab105f922b39eb5ddd55bf27a6e2b0d512040e0 /javaunohelper
parent7556d8c64b91bdc7005953af16011c78834f8b30 (diff)
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.
Diffstat (limited to 'javaunohelper')
-rw-r--r--javaunohelper/source/javaunohelper.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/javaunohelper/source/javaunohelper.cxx b/javaunohelper/source/javaunohelper.cxx
index c180f0a0a415..e9a63804cf9f 100644
--- a/javaunohelper/source/javaunohelper.cxx
+++ b/javaunohelper/source/javaunohelper.cxx
@@ -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() );
}