summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristof Pintaske <cp@openoffice.org>2002-05-22 11:33:59 +0000
committerChristof Pintaske <cp@openoffice.org>2002-05-22 11:33:59 +0000
commitc4b0e95982d554d0073f5492e077702622aaaec0 (patch)
tree94d8e0c1df80846057bf2b5f58d44de7c347e1b6
parentab839218054fd19bcfc48f79d0221b918111ef6e (diff)
#97217# having iiimp requires utf-8 encoding in eventloop
-rw-r--r--vcl/unx/source/window/salframe.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/vcl/unx/source/window/salframe.cxx b/vcl/unx/source/window/salframe.cxx
index a51792dda998..4df7728264f2 100644
--- a/vcl/unx/source/window/salframe.cxx
+++ b/vcl/unx/source/window/salframe.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: salframe.cxx,v $
*
- * $Revision: 1.131 $
+ * $Revision: 1.132 $
*
- * last change: $Author: pl $ $Date: 2002-05-08 13:46:44 $
+ * last change: $Author: cp $ $Date: 2002-05-22 12:33:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2424,7 +2424,13 @@ long SalFrameData::HandleKeyEvent( XKeyEvent *pEvent )
if( !nKeyCode && !nLen && !nKeyString)
return 0;
- rtl_TextEncoding nEncoding = osl_getThreadTextEncoding();
+ rtl_TextEncoding nEncoding;
+
+ if (mpInputContext != NULL && mpInputContext->IsMultiLingual() )
+ nEncoding = RTL_TEXTENCODING_UTF8;
+ else
+ nEncoding = osl_getThreadTextEncoding();
+
sal_Unicode *pBuffer;
sal_Unicode *pString;
sal_Size nBufferSize = nLen * 2;