diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-05-25 15:51:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-05-28 13:03:01 +0100 |
commit | 25a605f36544582bd454d4bc0e71e684749a0b80 (patch) | |
tree | 1f80de7419b0a1124e759e4fae04cb4429d14cbc /lingucomponent | |
parent | 6e12f367d5d0cee5b023bf93fe6faaebd92d5abd (diff) |
this is supposed to just be the number of bytes
Change-Id: Iecd376aba13f94c5c62fab2f3278c5f3efda20b4
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/languageguessing/simpleguesser.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lingucomponent/source/languageguessing/simpleguesser.cxx b/lingucomponent/source/languageguessing/simpleguesser.cxx index 383ab3ed4f9e..3346ef2c3c6a 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; |