diff options
author | Nils Fuhrmann <nf@openoffice.org> | 2001-06-07 14:02:22 +0000 |
---|---|---|
committer | Nils Fuhrmann <nf@openoffice.org> | 2001-06-07 14:02:22 +0000 |
commit | 10e3faa1a1d60efbff754a48f903293d2100ec5d (patch) | |
tree | cb911ad6e456da88b17af6e3f86dc3bbe95d2b69 /transex3 | |
parent | f0c237ec763a59584d066a7928d67e646abb1ea1 (diff) |
Clean up output on stdio and stderr #87136#
Diffstat (limited to 'transex3')
-rw-r--r-- | transex3/source/export.cxx | 20 | ||||
-rw-r--r-- | transex3/source/export2.cxx | 7 | ||||
-rw-r--r-- | transex3/source/localize.cxx | 10 | ||||
-rw-r--r-- | transex3/source/srclex.l | 2 |
4 files changed, 18 insertions, 21 deletions
diff --git a/transex3/source/export.cxx b/transex3/source/export.cxx index 5d262d546cbb..2e134894b20b 100644 --- a/transex3/source/export.cxx +++ b/transex3/source/export.cxx @@ -2,9 +2,9 @@ * * $RCSfile: export.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: nf $ $Date: 2001-06-07 13:33:31 $ + * last change: $Author: nf $ $Date: 2001-06-07 15:02:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -933,8 +933,8 @@ int Export::Execute( int nToken, char * pToken ) ByteString sError( "Language " ); sError += LangName[ nLangIndex ]; sError += " defined twice"; - YYWarning( sError.GetBufferAccess()); - sError.ReleaseBufferAccess(); +// YYWarning( sError.GetBufferAccess()); +// sError.ReleaseBufferAccess(); } pResData->sText[ nLangIndex ] = sText; } @@ -959,8 +959,8 @@ int Export::Execute( int nToken, char * pToken ) ByteString sError( "Language " ); sError += LangName[ nLangIndex ]; sError += " defined twice"; - YYWarning( sError.GetBufferAccess()); - sError.ReleaseBufferAccess(); +// YYWarning( sError.GetBufferAccess()); +// sError.ReleaseBufferAccess(); } pResData->sHelpText[ nLangIndex ] = sText; } @@ -979,8 +979,8 @@ int Export::Execute( int nToken, char * pToken ) ByteString sError( "Language " ); sError += LangName[ nLangIndex ]; sError += " defined twice"; - YYWarning( sError.GetBufferAccess()); - sError.ReleaseBufferAccess(); +// YYWarning( sError.GetBufferAccess()); +// sError.ReleaseBufferAccess(); } pResData->sQuickHelpText[ nLangIndex ] = sText; } @@ -999,8 +999,8 @@ int Export::Execute( int nToken, char * pToken ) ByteString sError( "Language " ); sError += LangName[ nLangIndex ]; sError += " defined twice"; - YYWarning( sError.GetBufferAccess()); - sError.ReleaseBufferAccess(); +// YYWarning( sError.GetBufferAccess()); +// sError.ReleaseBufferAccess(); } pResData->sTitle[ nLangIndex ] = sText; } diff --git a/transex3/source/export2.cxx b/transex3/source/export2.cxx index e97ce8993a5f..869af26cf58c 100644 --- a/transex3/source/export2.cxx +++ b/transex3/source/export2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: export2.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: nf $ $Date: 2001-06-07 13:33:31 $ + * last change: $Author: nf $ $Date: 2001-06-07 15:02:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -593,7 +593,8 @@ DirEntry Export::GetTempFile() #ifdef WNT String sTempDir( GetEnv( "TEMP" ), RTL_TEXTENCODING_ASCII_US ); #else - String sTempDir( GetEnv( "HOME" ), RTL_TEXTENCODING_ASCII_US ); +// String sTempDir( GetEnv( "HOME" ), RTL_TEXTENCODING_ASCII_US ); + String sTempDir( String::CreateFromAscii( "/tmp" )); #endif DirEntry aTemp( sTempDir ); return aTemp.TempName(); diff --git a/transex3/source/localize.cxx b/transex3/source/localize.cxx index 40342fb3c701..4f29b70233f8 100644 --- a/transex3/source/localize.cxx +++ b/transex3/source/localize.cxx @@ -2,9 +2,9 @@ * * $RCSfile: localize.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: nf $ $Date: 2001-06-07 13:40:09 $ + * last change: $Author: nf $ $Date: 2001-06-07 15:02:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -283,8 +283,6 @@ void SourceTreeLocalizer::WorkOnFile( system( sCommand.GetBuffer()); - fprintf( stdout, "Executed: %s\n", sCommand.GetBuffer()); - SvFileStream aSDFIn( aTemp.GetFull(), STREAM_READ ); ByteString sLine; while ( !aSDFIn.IsEof()) { @@ -513,12 +511,10 @@ BOOL SourceTreeLocalizer::MergeSingleFile( system( sCommand.GetBuffer()); - fprintf( stdout, "Executed: %s\n", sCommand.GetBuffer()); - SvFileStream aInStream( aOut.GetFull(), STREAM_READ ); if ( !aInStream.IsOpen()) { fprintf( stderr, - "ERROR: Unable to open file %s for modification!\n", + "ERROR: Unable to open file %s for reading!\n", sOutput.GetBuffer()); } else { diff --git a/transex3/source/srclex.l b/transex3/source/srclex.l index 89ecc989978d..8a4aff1e0336 100644 --- a/transex3/source/srclex.l +++ b/transex3/source/srclex.l @@ -243,7 +243,7 @@ main( int argc, char* argv[]) char *pOutput; FILE *pFile; - fprintf( stdout, "\nTransEx 0.9 Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.\n" ); + fprintf( stdout, "\nTransEx 3.1 Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.\n" ); fprintf( stdout, "========================================================================\n" ); pOutput = GetOutputFile( argc, argv ); |