summaryrefslogtreecommitdiff
path: root/transex3
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-09-20 14:02:34 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-09-20 14:02:34 +0000
commit3030710a8f83c0fc53dc090c99454c0df04c8c89 (patch)
treee279386e8ccc45ab059433250a44e6839fc34795 /transex3
parente5dc254a9fc800afbd248adb55bcce2e0cb92be1 (diff)
INTEGRATION: CWS os2port01 (1.34.22); FILE MERGED
2007/08/08 07:05:17 obr 1.34.22.2: RESYNC: (1.34-1.38); FILE MERGED 2006/12/28 15:07:40 ydario 1.34.22.1: OS/2 initial import.
Diffstat (limited to 'transex3')
-rw-r--r--transex3/source/export2.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/transex3/source/export2.cxx b/transex3/source/export2.cxx
index cd7450c6d938..f20fdf497df2 100644
--- a/transex3/source/export2.cxx
+++ b/transex3/source/export2.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: export2.cxx,v $
*
- * $Revision: 1.38 $
+ * $Revision: 1.39 $
*
- * last change: $Author: ihi $ $Date: 2007-04-19 15:18:36 $
+ * last change: $Author: vg $ $Date: 2007-09-20 15:02:34 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -344,7 +344,7 @@ void Export::RemoveUTF8ByteOrderMarkerFromFile( const ByteString &rFilename ){
sFile.Append("/");
sFile.Append( rPrj );
sFile.Append("/prj/l10n");
-#ifdef WNT
+#if defined(WNT) || defined(OS2)
sFile.SearchAndReplaceAll('/','\\');
#endif
DirEntry aFlagfile( sFile );
@@ -633,7 +633,7 @@ void Export::getRandomName( ByteString& sRandStr )
DirEntry Export::GetTempFile()
/*****************************************************************************/
{
-#ifdef WNT
+#if defined(WNT) || defined(OS2)
String sTempDir( Export::GetEnv( "TEMP" ), RTL_TEXTENCODING_ASCII_US );
#else
String sTempDir( String::CreateFromAscii( "/tmp" ));
@@ -650,7 +650,7 @@ DirEntry Export::GetTempFile()
String sDecodedStr = INetURLObject::decode( strTmp , '%' , eMechanism );
ByteString sTmp( sDecodedStr , RTL_TEXTENCODING_UTF8 );
-#ifdef WNT
+#if defined(WNT) || defined(OS2)
sTmp.SearchAndReplace("file:///","");
sTmp.SearchAndReplaceAll('/','\\');
#else