summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-11-01 16:13:29 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-11-01 16:13:29 +0000
commit0245a9eb680002a2f9921c55e67ca5f25ae436f4 (patch)
tree5fdaf7150ce2f572a85147c0ea950104c1f3ca38
parent3cb8d6c454aeda1503de015a0bec3996f68ca233 (diff)
INTEGRATION: CWS pj85 (1.2.12); FILE MERGED
2007/10/02 02:54:40 msicotte 1.2.12.1: #i82116# fix for words with accented (unicode) characters in Mac OS X Spellchecker
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
index 0b7c96e05983..bdf6384cc330 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: macspellimp.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: ihi $ $Date: 2007-09-13 18:05:25 $
+ * last change: $Author: hr $ $Date: 2007-11-01 17:13:29 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -431,7 +431,6 @@ Reference< XSpellAlternatives >
// note: mutex is held by higher up by spell which covers both
INT16 nLang = LocaleToLanguage( rLocale );
- rtl_TextEncoding aEnc = RTL_TEXTENCODING_UTF8;
int count;
Sequence< OUString > aStr( 0 );
@@ -470,7 +469,7 @@ Reference< XSpellAlternatives >
{
// if needed add: if (suglst[ii] == NULL) continue;
NSString* guess = [guesses objectAtIndex:ii];
- OUString cvtwrd([guess cStringUsingEncoding: NSUTF8StringEncoding], [guess length], aEnc);
+ OUString cvtwrd((const sal_Unicode*)[guess cStringUsingEncoding:NSUnicodeStringEncoding], (sal_Int32)[guess length]);
pStr[ii] = cvtwrd;
}
}