[Libreoffice-commits] core.git: sal/osl sal/qa sal/rtl sal/textenc

Tor Lillqvist tml at iki.fi
Fri Feb 22 01:16:13 PST 2013


 sal/osl/unx/file_url.cxx                  |    2 +-
 sal/osl/unx/process.cxx                   |    2 +-
 sal/osl/unx/salinit.cxx                   |    2 +-
 sal/osl/w32/file_dirvol.cxx               |    4 ++--
 sal/osl/w32/file_url.cxx                  |    2 +-
 sal/osl/w32/module.cxx                    |    2 +-
 sal/osl/w32/process.cxx                   |    2 +-
 sal/osl/w32/profile.cxx                   |    2 +-
 sal/qa/osl/file/osl_File.cxx              |   14 +++++++-------
 sal/qa/osl/mutex/osl_Mutex.cxx            |   14 +++++++-------
 sal/qa/osl/pipe/osl_Pipe.cxx              |    6 +++---
 sal/qa/osl/socket/osl_ConnectorSocket.cxx |    2 +-
 sal/qa/osl/socket/osl_Socket.cxx          |    8 ++++----
 sal/qa/osl/socket/osl_SocketAddr.cxx      |    4 ++--
 sal/qa/osl/socket/osl_StreamSocket.cxx    |    8 ++++----
 sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx    |    2 +-
 sal/qa/rtl_strings/rtl_OUString.cxx       |    2 +-
 sal/rtl/source/unload.cxx                 |    2 +-
 sal/textenc/tcvtmb.cxx                    |    2 +-
 sal/textenc/tcvtutf8.cxx                  |    2 +-
 20 files changed, 42 insertions(+), 42 deletions(-)

New commits:
commit fc090acf829d0053c0a611acd73f08b51128031d
Author: Tor Lillqvist <tml at iki.fi>
Date:   Fri Feb 22 11:13:56 2013 +0200

    Fix misspellings detected by https://github.com/lyda/misspell-check
    
    Just as a test to check the usefulness of that tool. It needs some improvement
    before really usable.
    
    Change-Id: I875e79c1992ed5f3b695736b0d49938ad0ba2d55

diff --git a/sal/osl/unx/file_url.cxx b/sal/osl/unx/file_url.cxx
index 7c28b8c..203d17f 100644
--- a/sal/osl/unx/file_url.cxx
+++ b/sal/osl/unx/file_url.cxx
@@ -182,7 +182,7 @@ oslFileError SAL_CALL osl_getSystemPathFromFileURL( rtl_uString *ustrFileURL, rt
         {
             nOffset += nIndex;
 
-            /* break url down in '/' devided tokens tokens */
+            /* break url down in '/' divided tokens tokens */
             nIndex = rtl_ustr_indexOfChar_WithLength( ustrFileURL->buffer + nOffset, ustrFileURL->length - nOffset, (sal_Unicode) '/' );
 
             /* copy token to new string */
diff --git a/sal/osl/unx/process.cxx b/sal/osl/unx/process.cxx
index cf246c5..aa71c36 100644
--- a/sal/osl/unx/process.cxx
+++ b/sal/osl/unx/process.cxx
@@ -1158,7 +1158,7 @@ static int is_timeout(const struct timeval* tend)
 }
 
 /**********************************************
- kill(pid, 0) is usefull for checking if a
+ kill(pid, 0) is useful for checking if a
  process is still alive, but remember that
  kill even returns 0 if the process is already
  a zombie.
diff --git a/sal/osl/unx/salinit.cxx b/sal/osl/unx/salinit.cxx
index 4211d08..49fddea 100644
--- a/sal/osl/unx/salinit.cxx
+++ b/sal/osl/unx/salinit.cxx
@@ -46,7 +46,7 @@ void sal_detail_initialize(int argc, char ** argv) {
     // <https://bugs.freedesktop.org/show_bug.cgi?id=50603> "Unable to update
     // LibreOffice without resetting user profile").  But closing fds in
     // restartOnMac before calling exec does not work, as additional threads
-    // might still be running then, wich can still use those fds and cause
+    // might still be running then, which can still use those fds and cause
     // crashes.  Therefore, the simples solution is to close fds at process
     // start (as early as possible, so that no other threads have been created
     // yet that might already have opened some fds); this is done for all kinds
diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx
index 89d286b..5d8c3a5 100644
--- a/sal/osl/w32/file_dirvol.cxx
+++ b/sal/osl/w32/file_dirvol.cxx
@@ -491,7 +491,7 @@ static oslFileError osl_openLocalRoot(
         ZeroMemory( pDirImpl, sizeof(Directory_Impl) );
         rtl_uString_newFromString( &pDirImpl->m_pDirectoryPath, strSysPath );
 
-        /* Append backslash if neccessary */
+        /* Append backslash if necessary */
 
         /* @@@ToDo
            use function ensure backslash
@@ -556,7 +556,7 @@ static oslFileError SAL_CALL osl_openFileDirectory(
     ZeroMemory( pDirImpl, sizeof(Directory_Impl) );
     rtl_uString_newFromString( &pDirImpl->m_pDirectoryPath, strDirectoryPath );
 
-    /* Append backslash if neccessary */
+    /* Append backslash if necessary */
 
     /* @@@ToDo
        use function ensure backslash
diff --git a/sal/osl/w32/file_url.cxx b/sal/osl/w32/file_url.cxx
index 2527cbd..324eca1 100644
--- a/sal/osl/w32/file_url.cxx
+++ b/sal/osl/w32/file_url.cxx
@@ -998,7 +998,7 @@ oslFileError SAL_CALL osl_searchFileURL(
             LPCTSTR lpszSearchFile = reinterpret_cast<LPCTSTR>(ustrSysPath->buffer);
 
             /* Allocate space for buffer according to previous returned count of required chars */
-            /* +1 is not neccessary if we follow MSDN documentation but for robustness we do so */
+            /* +1 is not necessary if we follow MSDN documentation but for robustness we do so */
             nBufferLength = dwResult + 1;
             lpBuffer = lpBuffer ?
                 reinterpret_cast<LPTSTR>(rtl_reallocateMemory(lpBuffer, nBufferLength * sizeof(TCHAR))) :
diff --git a/sal/osl/w32/module.cxx b/sal/osl/w32/module.cxx
index 3e07442..881aae5 100644
--- a/sal/osl/w32/module.cxx
+++ b/sal/osl/w32/module.cxx
@@ -267,7 +267,7 @@ typedef BOOL (WINAPI *SymGetModuleInfo_PROC)(
     PIMAGEHLP_MODULE  ModuleInfo
     );
 
-/* Seems that IMAGEHLP.DLL is always availiable on NT 4. But MSDN from Platform SDK says Win 2K is required. MSDN from VS 6.0a says
+/* Seems that IMAGEHLP.DLL is always available on NT 4. But MSDN from Platform SDK says Win 2K is required. MSDN from VS 6.0a says
     it's O.K on NT 4 ???!!!
     BTW: We are using ANSI function because not all version of IMAGEHLP.DLL contain Unicode support
 */
diff --git a/sal/osl/w32/process.cxx b/sal/osl/w32/process.cxx
index 34e293b..b775c62 100644
--- a/sal/osl/w32/process.cxx
+++ b/sal/osl/w32/process.cxx
@@ -525,7 +525,7 @@ static sal_Bool ReadPipe(oslPipe hPipe,
                 sal_Int32* nBytes)
 {
         *nBytes = osl_receivePipe(hPipe, pBuffer, BytesToRead);
-        OSL_TRACE("tried to recieve %d, recieved %d.\n",
+        OSL_TRACE("tried to receive %d, received %d.\n",
                         BytesToRead, *nBytes);
         return (sal_Bool)((*nBytes >= 0) && (osl_getLastPipeError(hPipe) == osl_Pipe_E_None));
 }
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx
index 0952f23..7477e3f 100644
--- a/sal/osl/w32/profile.cxx
+++ b/sal/osl/w32/profile.cxx
@@ -2332,7 +2332,7 @@ static sal_Bool lookupProfile(const sal_Unicode *strPath, const sal_Unicode *str
 
         rtl_uString_release(strTmp);
 
-        /* seperate path from filename */
+        /* separate path from filename */
         if ((nPos = rtl_ustr_lastIndexOfChar(strExecutable->buffer, L'\\')) == -1)
         {
             if ((nPos = rtl_ustr_lastIndexOfChar(strExecutable->buffer, L':')) == -1)
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index 79a52fb..b4cd2ee 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -327,7 +327,7 @@ inline sal_Bool isURL( const ::rtl::OUString pathname )
     return ( ( pathname.indexOf( aPreURL ) == 0 ) ? sal_True : sal_False );
 }
 
-/** concat two part to form a URL or system path, add PATH_SEPERATOR between them if necessary, add "file:///" to begining if necessary.
+/** concat two part to form a URL or system path, add PATH_SEPERATOR between them if necessary, add "file:///" to beginning if necessary.
 */
 inline void concatURL( ::rtl::OUString & pathname1, const ::rtl::OUString & pathname2 )
 {
@@ -521,7 +521,7 @@ inline sal_Bool ifFileExist( const ::rtl::OUString & str )
     return ( osl::FileBase::E_None == testFile.open( osl_File_OpenFlag_Read ) );
 }
 
-//check if the file can be writen
+//check if the file can be written
 inline sal_Bool ifFileCanWrite( const ::rtl::OUString & str )
 {
     sal_Bool  bCheckResult = sal_False;
@@ -976,7 +976,7 @@ namespace osl_FileBase
         the second only on windows based systems
         the first parameter are a file URL where we want to get the system path of,
         the second parameter is the assumed error of the osl_getSystemPathFromFileURL() function,
-        the thrid parameter is the assumed result string, the string will only test, if it's length is greater 0
+        the third parameter is the assumed result string, the string will only test, if it's length is greater 0
     */
 
     void SystemPath_FileURL::getSystemPathFromFileURL_001_1()
@@ -1134,7 +1134,7 @@ namespace osl_FileBase
 
         }
 
-        //CJK charactors case
+        //CJK characters case
     void SystemPath_FileURL::getSystemPathFromFileURL_005()
         {
             ::rtl::OUString aUStr;
@@ -3909,7 +3909,7 @@ namespace osl_File
             nError1 = testFile.close();
             CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
 
-            CPPUNIT_ASSERT_MESSAGE( "test for read function: read from a special positon in the file",
+            CPPUNIT_ASSERT_MESSAGE( "test for read function: read from a special position in the file",
                                      ( 52 == nFilePointer ) && ( 26 == nCount_read ) && ( 0 == strncmp( buffer_read, &pBuffer_Char[26], 26 ) ) );
         }
 
@@ -3958,7 +3958,7 @@ namespace osl_File
             //get the current pointer;
              nError1 = testFile.getPos( nFilePointer );
             CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
-            //reset pointer to the begining;
+            //reset pointer to the beginning;
              nError1 = testFile.setPos( osl_Pos_Absolut, 0 );
             CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
             nError1 = testFile.read( buffer_read, 10, nCount_read );
@@ -6221,7 +6221,7 @@ class GlobalObject
     {
         try
         {
-            //~ special clean up task in Windows and Unix seperately;
+            //~ special clean up task in Windows and Unix separately;
 #if ( defined UNX )
             //~ some clean up task  for UNIX OS
             ;
diff --git a/sal/qa/osl/mutex/osl_Mutex.cxx b/sal/qa/osl/mutex/osl_Mutex.cxx
index 80c10eb..0e9ce85 100644
--- a/sal/qa/osl/mutex/osl_Mutex.cxx
+++ b/sal/qa/osl/mutex/osl_Mutex.cxx
@@ -484,7 +484,7 @@ namespace osl_Mutex
             if ( bRes2 == sal_True )
                 aMutex.release( );
 
-            CPPUNIT_ASSERT_MESSAGE( "release Mutex: try to aquire before and after the mutex has been released",
+            CPPUNIT_ASSERT_MESSAGE( "release Mutex: try to acquire before and after the mutex has been released",
                 bRes1 == sal_False && bRes2 == sal_True && bRunning == sal_True );
 
         }
@@ -630,7 +630,7 @@ namespace osl_Guard
             aMutex.release( );
             myThread.join( );
 
-            CPPUNIT_ASSERT_MESSAGE("GuardThread constructor: reference initialization, aquire the mutex before running the thread, then check if it is blocking.",
+            CPPUNIT_ASSERT_MESSAGE("GuardThread constructor: reference initialization, acquire the mutex before running the thread, then check if it is blocking.",
                 bRes == sal_True);
         }
 
@@ -694,7 +694,7 @@ namespace osl_ClearableGuard
             /// it will return sal_False if the aMutex has not been Guarded.
             sal_Bool bRes = aMutex.release( );
 
-            CPPUNIT_ASSERT_MESSAGE("ClearableMutexGuard constructor, test the aquire operation when initilized.",
+            CPPUNIT_ASSERT_MESSAGE("ClearableMutexGuard constructor, test the acquire operation when initilized.",
                 bRes == sal_True );
         }
 
@@ -708,7 +708,7 @@ namespace osl_ClearableGuard
             /// it will return sal_False if the aMutex has not been Guarded.
             sal_Bool bRes = aMutex.release( );
 
-            CPPUNIT_ASSERT_MESSAGE("ClearableMutexGuard constructor, test the aquire operation when initilized, we use reference constructor this time.",
+            CPPUNIT_ASSERT_MESSAGE("ClearableMutexGuard constructor, test the acquire operation when initilized, we use reference constructor this time.",
                 bRes == sal_True );
         }
 
@@ -833,7 +833,7 @@ namespace osl_ResettableGuard
             /// it will return sal_False if the aMutex has not been Guarded.
             sal_Bool bRes = aMutex.release( );
 
-            CPPUNIT_ASSERT_MESSAGE("ResettableMutexGuard constructor, test the aquire operation when initilized.",
+            CPPUNIT_ASSERT_MESSAGE("ResettableMutexGuard constructor, test the acquire operation when initilized.",
                 bRes == sal_True );
         }
 
@@ -847,7 +847,7 @@ namespace osl_ResettableGuard
             /// it will return sal_False if the aMutex has not been Guarded.
             sal_Bool bRes = aMutex.release( );
 
-            CPPUNIT_ASSERT_MESSAGE( "ResettableMutexGuard constructor, test the aquire operation when initilized, we use reference constructor this time.",
+            CPPUNIT_ASSERT_MESSAGE( "ResettableMutexGuard constructor, test the acquire operation when initilized, we use reference constructor this time.",
                 bRes == sal_True );
         }
 
@@ -895,7 +895,7 @@ namespace osl_ResettableGuard
             myMutexGuard.reset( );
             sal_Bool bRes1 = aMutex.release( );
 
-            CPPUNIT_ASSERT_MESSAGE( "ResettableMutexGuard method: reset, release after clear and reset, on Solaris, the mutex can be release without aquire, so it can not passed on (SOLARIS), but not the reason for reset_002",
+            CPPUNIT_ASSERT_MESSAGE( "ResettableMutexGuard method: reset, release after clear and reset, on Solaris, the mutex can be release without acquire, so it can not passed on (SOLARIS), but not the reason for reset_002",
                 ( sal_False == bRes ) && ( sal_True == bRes1 ) );
         }
 
diff --git a/sal/qa/osl/pipe/osl_Pipe.cxx b/sal/qa/osl/pipe/osl_Pipe.cxx
index f2d7985..93b3b17 100644
--- a/sal/qa/osl/pipe/osl_Pipe.cxx
+++ b/sal/qa/osl/pipe/osl_Pipe.cxx
@@ -230,7 +230,7 @@ namespace osl_Pipe
                 ///bRes1 = aNoAcquirePipe.is( );
 
 
-                CPPUNIT_ASSERT_MESSAGE( "#test comment#: test constructor with no aquire of handle, only validation test, do not know how to test no acquire.",
+                CPPUNIT_ASSERT_MESSAGE( "#test comment#: test constructor with no acquire of handle, only validation test, do not know how to test no acquire.",
                                         sal_True == bRes );
             }
 
@@ -245,7 +245,7 @@ namespace osl_Pipe
                 bRes = aAcquirePipe.is( );
                 bRes1 = aAcquirePipe1.is( );
 
-                CPPUNIT_ASSERT_MESSAGE( "#test comment#: test constructor with no aquire of handle.only validation test, do not know how to test no acquire.",
+                CPPUNIT_ASSERT_MESSAGE( "#test comment#: test constructor with no acquire of handle.only validation test, do not know how to test no acquire.",
                                         sal_True == bRes && sal_False == bRes1 );
             }
 
@@ -748,7 +748,7 @@ namespace osl_StreamPipe
                 bRes = aNoAcquirePipe.is( );
                 aPipe.clear( );
 
-                CPPUNIT_ASSERT_MESSAGE( "#test comment#: test constructor with no aquire of handle, only validation test, do not know how to test no acquire.",
+                CPPUNIT_ASSERT_MESSAGE( "#test comment#: test constructor with no acquire of handle, only validation test, do not know how to test no acquire.",
                                         sal_True == bRes );
             }
 
diff --git a/sal/qa/osl/socket/osl_ConnectorSocket.cxx b/sal/qa/osl/socket/osl_ConnectorSocket.cxx
index 271bcc8..50f19b1 100644
--- a/sal/qa/osl/socket/osl_ConnectorSocket.cxx
+++ b/sal/qa/osl/socket/osl_ConnectorSocket.cxx
@@ -201,7 +201,7 @@ namespace osl_ConnectorSocket
                 sal_True == compareSocketAddr( saPeerSocketAddr, saLocalSocketAddr  )  ) ;
         }
         // really an error or just delayed
-        // how to design senarios that will return osl_Socket_Interrupted, osl_Socket_TimedOut
+        // how to design scenarios that will return osl_Socket_Interrupted, osl_Socket_TimedOut
         void connect_003()
         {
             ::osl::SocketAddr saTargetSocketAddr1( rtl::OUString("127.0.0.1"), IP_PORT_MYPORT3 );
diff --git a/sal/qa/osl/socket/osl_Socket.cxx b/sal/qa/osl/socket/osl_Socket.cxx
index 5da5af6..7f126f6 100644
--- a/sal/qa/osl/socket/osl_Socket.cxx
+++ b/sal/qa/osl/socket/osl_Socket.cxx
@@ -847,7 +847,7 @@ namespace osl_SocketAddr
             ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_FTP );
             printUString(saSocketAddr.getHostname( ), "ctors_hostname_port_001:getHostname");
 
-            CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specif constructor function: do a constructor using tcpip spec, check the result.",
+            CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specific constructor function: do a constructor using tcpip spec, check the result.",
                                     saSocketAddr.is( ) == sal_True &&
                                     ( saSocketAddr.getPort( ) == IP_PORT_FTP )/*&&
                                     ( sal_True == compareUString( saSocketAddr.getHostname( ), aHostName1 ) ) */);
@@ -859,7 +859,7 @@ namespace osl_SocketAddr
             /// tcpip-specif constructor.
             ::osl::SocketAddr saSocketAddr( aHostIpInval1, IP_PORT_MYPORT2 );
 
-            CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specif constructor function: using an invalid IP address, the socketaddr ctors should fail", sal_False == saSocketAddr.is( ));
+            CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specific constructor function: using an invalid IP address, the socketaddr ctors should fail", sal_False == saSocketAddr.is( ));
         }
         CPPUNIT_TEST_SUITE( ctors );
         CPPUNIT_TEST( ctors_none );
@@ -3071,7 +3071,7 @@ protected:
             oslSocketResult eResult = asSocket.acceptConnection( ssConnectionSocket );
             CPPUNIT_ASSERT_MESSAGE("shutdown_002: acceptConnection fail", eResult == osl_Socket_Ok );
 
-            /* set socket option SO_LINGER 0, so close immediatly */
+            /* set socket option SO_LINGER 0, so close immediately */
             linger aLingerSet;
                 sal_Int32 nBufferLen = sizeof( struct linger );
                     aLingerSet.l_onoff = 0;
@@ -3296,7 +3296,7 @@ namespace osl_ConnectorSocket
                 sal_True == compareSocketAddr( saPeerSocketAddr, saLocalSocketAddr  )  ) ;
         }
         // really an error or just delayed
-        // how to design senarios that will return osl_Socket_Interrupted, osl_Socket_TimedOut
+        // how to design scenarios that will return osl_Socket_Interrupted, osl_Socket_TimedOut
         void connect_003()
         {
             ::osl::SocketAddr saTargetSocketAddr1( aHostIp1, IP_PORT_MYPORT3 );
diff --git a/sal/qa/osl/socket/osl_SocketAddr.cxx b/sal/qa/osl/socket/osl_SocketAddr.cxx
index 1e8529a..50e6c16 100644
--- a/sal/qa/osl/socket/osl_SocketAddr.cxx
+++ b/sal/qa/osl/socket/osl_SocketAddr.cxx
@@ -187,7 +187,7 @@ namespace osl_SocketAddr
             ::osl::SocketAddr saSocketAddr( rtl::OUString("127.0.0.1"), IP_PORT_FTP );
             printUString( saSocketAddr.getHostname( ), "ctors_hostname_port_001:getHostname");
 
-            CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specif constructor function: do a constructor using tcpip spec, check the result.",
+            CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specific constructor function: do a constructor using tcpip spec, check the result.",
                                     saSocketAddr.is( ) == sal_True &&
                                     ( saSocketAddr.getPort( ) == IP_PORT_FTP )
                                   );
@@ -199,7 +199,7 @@ namespace osl_SocketAddr
             /// tcpip-specif constructor.
             ::osl::SocketAddr saSocketAddr( rtl::OUString("123.345.67.89"), IP_PORT_MYPORT2 );
 
-            CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specif constructor function: using an invalid IP address, the socketaddr ctors should fail", sal_False == saSocketAddr.is( ));
+            CPPUNIT_ASSERT_MESSAGE("test for SocketAddr tcpip specific constructor function: using an invalid IP address, the socketaddr ctors should fail", sal_False == saSocketAddr.is( ));
         }
         CPPUNIT_TEST_SUITE( ctors );
         CPPUNIT_TEST( ctors_none );
diff --git a/sal/qa/osl/socket/osl_StreamSocket.cxx b/sal/qa/osl/socket/osl_StreamSocket.cxx
index 22971a2..42fb7e1 100644
--- a/sal/qa/osl/socket/osl_StreamSocket.cxx
+++ b/sal/qa/osl/socket/osl_StreamSocket.cxx
@@ -792,7 +792,7 @@ namespace osl_StreamSocket
                 oslSocketResult eResult = asSocket.acceptConnection( ssConnectionSocket );
                 CPPUNIT_ASSERT_MESSAGE("shutdown_002: acceptConnection fail", eResult == osl_Socket_Ok );
 
-                /* set socket option SO_LINGER 0, so close immediatly */
+                /* set socket option SO_LINGER 0, so close immediately */
                 linger aLingerSet;
                 sal_Int32 nBufferLen = sizeof( struct linger );
                 aLingerSet.l_onoff = 0;
@@ -957,7 +957,7 @@ namespace osl_StreamSocket
                     {
                         t_print("read()\n");
                         m_nReadCount = aSocket.read( m_pBuffer, m_nBufferSize );
-                        t_print("%d bytes recived.\n", (int) m_nReadCount);
+                        t_print("%d bytes received.\n", (int) m_nReadCount);
                     }
                 }
                 else
@@ -1028,12 +1028,12 @@ namespace osl_StreamSocket
 
                 if (! aSocketAddr.setPort(IP_PORT_TEST))
                 {
-                    t_print("# cant set port\n" );
+                    t_print("# can not set port\n" );
                 }
 
                 if (! aSocketAddr.setHostname(rtl::OUString::createFromAscii(_sAddr.getStr())))
                 {
-                    t_print("# cant set hostname/ip\n" );
+                    t_print("# can not set hostname/ip\n" );
                 }
 
                 rtl::OUString aHostname = aSocketAddr.getHostname();
diff --git a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx
index 651e60d..2977771 100644
--- a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx
+++ b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx
@@ -166,7 +166,7 @@ namespace rtl_Bootstrap
                 //              but try to use ${file::KEYVALUE} than 'file' will only used out of the 'executable path'/file
                 //              not from the path given from the absolute path.
 
-                // Due to the fact, we create at this position a file (createTestshl2rc() ), we check for existance
+                // Due to the fact, we create at this position a file (createTestshl2rc() ), we check for existence
                 bool bFileExist = t_fileExist( suGetname );
                 CPPUNIT_ASSERT_MESSAGE("ctor error with initial file.", bFileExist == true );
             }
diff --git a/sal/qa/rtl_strings/rtl_OUString.cxx b/sal/qa/rtl_strings/rtl_OUString.cxx
index 3ba20e7..8758704 100644
--- a/sal/qa/rtl_strings/rtl_OUString.cxx
+++ b/sal/qa/rtl_strings/rtl_OUString.cxx
@@ -733,7 +733,7 @@ extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUString_op_eq(
         {"null and Ustr1", new OUString, new OUString(aUStr1)},
         {"Ustr2 and Ustr1", new OUString(aUStr2),
          new OUString(aUStr1)},
-        {""" and Ustr1 from bit charactor buffer",
+        {""" and Ustr1 from bit character buffer",
          new OUString(aUStr1),
          new OUString( "",
                        0,
diff --git a/sal/rtl/source/unload.cxx b/sal/rtl/source/unload.cxx
index 4d40de7..4d4a414 100644
--- a/sal/rtl/source/unload.cxx
+++ b/sal/rtl/source/unload.cxx
@@ -357,7 +357,7 @@ static ListenerMap& getListenerMap()
 // This queue contains cookies which have been passed out by rtl_addUnloadingListener and
 // which have been regainded by rtl_removeUnloadingListener. When rtl_addUnloadingListener
 // is called then a cookie has to be returned. First we look into the set if there is one
-// availabe. Otherwise a new cookie will be provided.
+// available. Otherwise a new cookie will be provided.
 // not a new value is returned.
 
 typedef std::deque<
diff --git a/sal/textenc/tcvtmb.cxx b/sal/textenc/tcvtmb.cxx
index 7dbb0aa..ec5159e 100644
--- a/sal/textenc/tcvtmb.cxx
+++ b/sal/textenc/tcvtmb.cxx
@@ -30,7 +30,7 @@
 /* DBCS to Unicode conversion routine use a lead table for the first byte, */
 /* where we determine the trail table or for single byte chars the unicode */
 /* value. We have for all lead byte a separate table, because we can */
-/* then share many tables for diffrent charset encodings. */
+/* then share many tables for different charset encodings. */
 
 /* ======================================================================= */
 
diff --git a/sal/textenc/tcvtutf8.cxx b/sal/textenc/tcvtutf8.cxx
index 92fdb6d..9490980 100644
--- a/sal/textenc/tcvtutf8.cxx
+++ b/sal/textenc/tcvtutf8.cxx
@@ -143,7 +143,7 @@ sal_Size ImplConvertUtf8ToUnicode(
         else
         {
             /*
-             This byte is preceeded by a broken UTF-8 sequence; if this byte
+             This byte is preceded by a broken UTF-8 sequence; if this byte
              is neither in the range [0x80..0xBF] nor in the range
              [0xFE..0xFF], assume that this byte does not belong to that
              broken sequence, but instead starts a new, legal UTF-8 sequence:


More information about the Libreoffice-commits mailing list