config.cxx (89b56da7) | config.cxx (7950f2af) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 164 unchanged lines hidden (view full) --- 173 if( eError != ::osl::FileBase::E_None ) 174 eError = aFile.open( osl_File_OpenFlag_Write ); 175 if( eError == ::osl::FileBase::E_None ) 176 { 177 // truncate 178 aFile.setSize( 0 ); 179 sal_uInt64 nWritten; 180 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 164 unchanged lines hidden (view full) --- 173 if( eError != ::osl::FileBase::E_None ) 174 eError = aFile.open( osl_File_OpenFlag_Write ); 175 if( eError == ::osl::FileBase::E_None ) 176 { 177 // truncate 178 aFile.setSize( 0 ); 179 sal_uInt64 nWritten; 180 |
181 //write the the byte-order-mark 0xEF 0xBB 0xBF first , if it was UTF8 files | 181 //write the byte-order-mark 0xEF 0xBB 0xBF first , if it was UTF8 files |
182 if ( rbIsUTF8BOM ) 183 { 184 unsigned char BOM[3] = {0xEF, 0xBB, 0xBF}; 185 sal_uInt64 nUTF8BOMWritten; 186 if( aFile.write( BOM, 3, nUTF8BOMWritten ) == ::osl::FileBase::E_None && 3 == nUTF8BOMWritten ) 187 { 188 bUTF8BOMSuccess = sal_True; 189 } --- 1111 unchanged lines hidden --- | 182 if ( rbIsUTF8BOM ) 183 { 184 unsigned char BOM[3] = {0xEF, 0xBB, 0xBF}; 185 sal_uInt64 nUTF8BOMWritten; 186 if( aFile.write( BOM, 3, nUTF8BOMWritten ) == ::osl::FileBase::E_None && 3 == nUTF8BOMWritten ) 187 { 188 bUTF8BOMSuccess = sal_True; 189 } --- 1111 unchanged lines hidden --- |