diff options
Diffstat (limited to 'misc/libreoffice/patches/patch-lingucomponent_source_languageguessing_simpleguesser.cxx')
-rw-r--r-- | misc/libreoffice/patches/patch-lingucomponent_source_languageguessing_simpleguesser.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/misc/libreoffice/patches/patch-lingucomponent_source_languageguessing_simpleguesser.cxx b/misc/libreoffice/patches/patch-lingucomponent_source_languageguessing_simpleguesser.cxx new file mode 100644 index 00000000000..d03b2be6cd4 --- /dev/null +++ b/misc/libreoffice/patches/patch-lingucomponent_source_languageguessing_simpleguesser.cxx @@ -0,0 +1,16 @@ +$NetBSD: patch-lingucomponent_source_languageguessing_simpleguesser.cxx,v 1.1 2012/06/05 21:53:42 wiz Exp $ + +Fixes a build issue: 'utfstrlen' was not declared in this scope +utfstrlen was never supposed to be used anyway: +http://www.mail-archive.com/libreoffice@lists.freedesktop.org/msg30469.html +--- lingucomponent/source/languageguessing/simpleguesser.cxx.orig 2012-05-22 12:48:18.000000000 +0000 ++++ lingucomponent/source/languageguessing/simpleguesser.cxx +@@ -118,7 +118,7 @@ vector<Guess> SimpleGuesser::GuessLangua + 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; |