[Libreoffice-commits] .: Branch 'libreoffice-3-5' - lingucomponent/source

Tomáš Chvátal tchvatal at kemper.freedesktop.org
Wed May 30 03:47:34 PDT 2012


 lingucomponent/source/languageguessing/simpleguesser.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit f12f1b2afa5bbea5e62cab960ffe61925e5d96fd
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri May 25 15:51:04 2012 +0100

    this is supposed to just be the number of bytes
    
    Change-Id: Iecd376aba13f94c5c62fab2f3278c5f3efda20b4
    Signed-off-by: Tomas Chvatal <tchvatal at suse.cz>

diff --git a/lingucomponent/source/languageguessing/simpleguesser.cxx b/lingucomponent/source/languageguessing/simpleguesser.cxx
index 383ab3e..3346ef2 100644
--- a/lingucomponent/source/languageguessing/simpleguesser.cxx
+++ b/lingucomponent/source/languageguessing/simpleguesser.cxx
@@ -117,8 +117,7 @@ vector<Guess> SimpleGuesser::GuessLanguage(const char* text)
     if (!h)
         return guesses;
 
-    //calculate le number of unicode charcters (symbols)
-    int len = utfstrlen(text);
+    int len = strlen(text);
 
     if (len > MAX_STRING_LENGTH_TO_ANALYSE)
         len = MAX_STRING_LENGTH_TO_ANALYSE;


More information about the Libreoffice-commits mailing list