diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2004-06-26 02:10:37 +0000 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2004-06-26 02:10:37 +0000 |
commit | 6df75172feafafc726d8b6bd510448727a31e2ab (patch) | |
tree | e01abb656bc880a825cd9d6f161a90a0f036a37a /crashrep/source/unx | |
parent | 2f0055984c1e982cc232390c673faf02488bbdaf (diff) |
INTEGRATION: CWS mergebuild (1.1.36); FILE MERGED
2004/04/20 16:37:01 hjs 1.1.36.2: RESYNC: (1.1-1.2); FILE MERGED
2003/10/29 17:19:38 hjs 1.1.36.1: #i8252# telnr. to iso code; switch to ulf
Diffstat (limited to 'crashrep/source/unx')
-rwxr-xr-x | crashrep/source/unx/res/unxcrashres.cxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/crashrep/source/unx/res/unxcrashres.cxx b/crashrep/source/unx/res/unxcrashres.cxx index a47fb7b2488b..5414435bb05b 100755 --- a/crashrep/source/unx/res/unxcrashres.cxx +++ b/crashrep/source/unx/res/unxcrashres.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unxcrashres.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: vg $ $Date: 2003-12-17 19:29:00 $ + * last change: $Author: hjs $ $Date: 2004-06-26 03:10:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -44,7 +44,6 @@ ************************************************************************/#include <tools/config.hxx> #include <rtl/string.hxx> #include <osl/thread.h> -#include <tools/l2txtenc.hxx> #include <hash_map> #include <string> @@ -79,7 +78,7 @@ int main( int argc, char** argv ) ByteString tmp_argv1( argv[1] ); Config aConfig( String( tmp_argv1, osl_getThreadTextEncoding() ) ); - hash_map< int, hash_map< OString, OString, OStringHash > > aFiles; + hash_map< ByteString, hash_map< OString, OString, OStringHash >, OStringHash > aFiles; for( USHORT i = 0; i < aConfig.GetGroupCount(); i++ ) { @@ -90,21 +89,18 @@ int main( int argc, char** argv ) { ByteString aKey = aConfig.GetKeyName( n ); ByteString aValue = aConfig.ReadKey( aKey ); - int nRes = aKey.ToInt32(); // tailor key filterValue( aValue, aGroup, aKey ); - aFiles[nRes][aGroup] = ByteString( String( aValue, Langcode2TextEncoding( (USHORT)nRes ) ), RTL_TEXTENCODING_UTF8 ); + aFiles[aKey][aGroup] = ByteString( aValue ); } } - for( hash_map< int, hash_map< OString, OString, OStringHash > >::const_iterator lang_it = aFiles.begin(); lang_it != aFiles.end(); ++lang_it ) + for( hash_map< ByteString, hash_map< OString, OString, OStringHash >, OStringHash >::const_iterator lang_it = aFiles.begin(); lang_it != aFiles.end(); ++lang_it ) { ByteString aFile( argv[2] ); aFile.Append( '.' ); - if( lang_it->first < 10 ) - aFile.Append( '0' ); - aFile.Append( ByteString::CreateFromInt32( lang_it->first ) ); + aFile.Append( lang_it->first ); FILE* fp = fopen( aFile.GetBuffer(), "w" ); if( ! fp ) { |