diff --git a/dic/compdic.cpp b/dic/compdic.cpp index 958540b..0e490d7 100644 --- a/dic/compdic.cpp +++ b/dic/compdic.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * Eliot - * Copyright (C) 1999-2012 Antoine Fraboulet & Olivier Teulière + * Copyright (C) 1999-2013 Antoine Fraboulet & Olivier Teulière * Authors: Antoine Fraboulet * Olivier Teulière * @@ -170,7 +170,11 @@ void CompDic::loadWordList(const string &iFileName, vector &oWordList) // Ignore empty lines if (line == "") continue; - oWordList.push_back(readFromUTF8(line, "loadWordList")); + // Ensure the word is in upper case + wstring wstr = readFromUTF8(line, "loadWordList"); + std::transform(wstr.begin(), wstr.end(), wstr.begin(), towupper); + + oWordList.push_back(wstr); } // Sort the word list, to perform a better compression