summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/spellcheck_unittest.cc5
-rw-r--r--chrome/browser/spellcheck_worditerator.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/spellcheck_unittest.cc b/chrome/browser/spellcheck_unittest.cc
index 47b608f..d3c3388 100644
--- a/chrome/browser/spellcheck_unittest.cc
+++ b/chrome/browser/spellcheck_unittest.cc
@@ -259,6 +259,11 @@ TEST_F(SpellCheckTest, SpellCheckStrings_EN_US) {
// [ROBUSTNESS] Two invalid English words concatenated with a contraction
// character.
{L"ifmmp:ifmmp", false, 0, 11},
+
+ // [REGRESSION] Issue 13432: "Any word of 13 or 14 characters is not
+ // spellcheck" <http://crbug.com/13432>.
+ {L"qwertyuiopasd", false, 0, 13},
+ {L"qwertyuiopasdf", false, 0, 14},
};
FilePath hunspell_directory = GetHunspellDirectory();
diff --git a/chrome/browser/spellcheck_worditerator.cc b/chrome/browser/spellcheck_worditerator.cc
index 1b98b4a..2cbb6af 100644
--- a/chrome/browser/spellcheck_worditerator.cc
+++ b/chrome/browser/spellcheck_worditerator.cc
@@ -271,5 +271,5 @@ bool SpellcheckWordIterator::Normalize(int input_start,
Normalizer::normalize(input, UNORM_NFKC, 0, output, status);
if (U_SUCCESS(status))
output_string->assign(output.getTerminatedBuffer());
- return (status == U_ZERO_ERROR);
+ return status == U_ZERO_ERROR || status == U_STRING_NOT_TERMINATED_WARNING;
}