diff options
author | Thomas Lange <tl@openoffice.org> | 2001-07-25 09:09:50 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2001-07-25 09:09:50 +0000 |
commit | 402e1f1ce7cb11f8c9e58984b16dbc4e41b42371 (patch) | |
tree | 589769b5ab6d04624bbbca887800e8f3ecc770c5 /linguistic/inc/misc.hxx | |
parent | 2fde9bc80bbe3498d7412f232769ca6cb2d30da4 (diff) |
#90210# use correct text-encoding for non latin1 languages
Diffstat (limited to 'linguistic/inc/misc.hxx')
-rw-r--r-- | linguistic/inc/misc.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linguistic/inc/misc.hxx b/linguistic/inc/misc.hxx index d68b2d9569..c20ff8c2e0 100644 --- a/linguistic/inc/misc.hxx +++ b/linguistic/inc/misc.hxx @@ -2,9 +2,9 @@ * * $RCSfile: misc.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: tl $ $Date: 2000-12-22 12:44:34 $ + * last change: $Author: tl $ $Date: 2001-07-25 10:07:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -146,16 +146,16 @@ namespace linguistic /////////////////////////////////////////////////////////////////////////// -inline rtl_TextEncoding GetTextEncoding() { return osl_getThreadTextEncoding(); } +rtl_TextEncoding GetTextEncoding( INT16 nLanguage ); -inline ::rtl::OUString BS2OU(const ByteString &rText) +inline ::rtl::OUString BS2OU(const ByteString &rText, rtl_TextEncoding nEnc) { - return ::rtl::OUString( rText.GetBuffer(), rText.Len(), GetTextEncoding() ); + return ::rtl::OUString( rText.GetBuffer(), rText.Len(), nEnc ); } -inline ByteString OU2BS(const ::rtl::OUString &rText) +inline ByteString OU2BS(const ::rtl::OUString &rText, rtl_TextEncoding nEnc) { - return ByteString( rText.getStr(), GetTextEncoding() ); + return ByteString( rText.getStr(), nEnc ); } /////////////////////////////////////////////////////////////////////////// |