summaryrefslogtreecommitdiff
path: root/dtrans/source/win32/misc/ImplHelper.cxx
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2001-03-19 08:12:05 +0000
committerTino Rachui <tra@openoffice.org>2001-03-19 08:12:05 +0000
commit04b8820c47a5977f0055dbb8f661cae622c93564 (patch)
treea0fb2c44f0a58c341d2e85f99cdc8c876387666f /dtrans/source/win32/misc/ImplHelper.cxx
parent488f685350a8389f1f21400d887fedcb20b64cc0 (diff)
ImplHelper.cxx
Diffstat (limited to 'dtrans/source/win32/misc/ImplHelper.cxx')
-rw-r--r--dtrans/source/win32/misc/ImplHelper.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/dtrans/source/win32/misc/ImplHelper.cxx b/dtrans/source/win32/misc/ImplHelper.cxx
index 59e5d423aaee..b72f6c64568b 100644
--- a/dtrans/source/win32/misc/ImplHelper.cxx
+++ b/dtrans/source/win32/misc/ImplHelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ImplHelper.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: tra $ $Date: 2001-03-16 09:02:25 $
+ * last change: $Author: tra $ $Date: 2001-03-19 09:12:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -120,6 +120,9 @@ sal_uInt32 SAL_CALL getWinCPFromMimeCharset( const OUString& charset )
sal_Bool bRet = TranslateCharsetInfo(
(DWORD*)winChrs, &chrsInf, TCI_SRCCHARSET );
+ // if one of the above functions fails
+ // we will return the current ANSI codepage
+ // of this thread
sal_uInt32 winCP = GetACP( );
if ( bRet )
winCP = chrsInf.ciACP;
@@ -144,7 +147,8 @@ OUString SAL_CALL getWinCPFromLocaleId( LCID lcid, LCTYPE lctype )
OSL_ASSERT( nResult );
- OUString winCP;
+ // we set an default value
+ OUString winCP = OUString::createFromAscii( "1252" );
if ( nResult )
{