24df8e
# HG changeset patch
24df8e
# Parent 58ce6051edf56ce70c1a62e88bd879a6e56d9239
24df8e
# User Jan Horak <jhorak@redhat.com>
24df8e
# Bug 1129859 - Always use '-' as separator between lang-region in dictionary names, fixes problems with system dictionaries which has '_' as separator
24df8e
try: -b do -p all -u all -t none
24df8e
24df8e
diff --git a/editor/composer/nsEditorSpellCheck.cpp b/editor/composer/nsEditorSpellCheck.cpp
24df8e
--- a/editor/composer/nsEditorSpellCheck.cpp
24df8e
+++ b/editor/composer/nsEditorSpellCheck.cpp
24df8e
diff --git a/extensions/spellcheck/hunspell/src/mozHunspell.cpp b/extensions/spellcheck/hunspell/src/mozHunspell.cpp
24df8e
--- a/extensions/spellcheck/hunspell/src/mozHunspell.cpp
24df8e
+++ b/extensions/spellcheck/hunspell/src/mozHunspell.cpp
24df8e
@@ -485,16 +485,19 @@ mozHunspell::LoadDictionariesFromDir(nsI
24df8e
     rv = file->Exists(&check);
24df8e
     if (NS_FAILED(rv) || !check)
24df8e
       continue;
24df8e
 
24df8e
 #ifdef DEBUG_bsmedberg
24df8e
     printf("Adding dictionary: %s\n", NS_ConvertUTF16toUTF8(dict).get());
24df8e
 #endif
24df8e
 
24df8e
+    // Replace '_' separator with '-'
24df8e
+    dict.ReplaceChar("_", '-');
24df8e
+
24df8e
     mDictionaries.Put(dict, file);
24df8e
   }
24df8e
 
24df8e
   return NS_OK;
24df8e
 }
24df8e
 
24df8e
 nsresult mozHunspell::ConvertCharset(const char16_t* aStr, char ** aDst)
24df8e
 {
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/1463589_utf.aff b/extensions/spellcheck/hunspell/tests/unit/data/1463589-utf.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/1463589_utf.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/1463589-utf.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/1463589_utf.dic b/extensions/spellcheck/hunspell/tests/unit/data/1463589-utf.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/1463589_utf.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/1463589-utf.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/1463589_utf.sug b/extensions/spellcheck/hunspell/tests/unit/data/1463589-utf.sug
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/1463589_utf.sug
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/1463589-utf.sug
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/1463589_utf.test b/extensions/spellcheck/hunspell/tests/unit/data/1463589-utf.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/1463589_utf.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/1463589-utf.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/1463589_utf.wrong b/extensions/spellcheck/hunspell/tests/unit/data/1463589-utf.wrong
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/1463589_utf.wrong
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/1463589-utf.wrong
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/allcaps_utf.aff b/extensions/spellcheck/hunspell/tests/unit/data/allcaps-utf.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/allcaps_utf.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/allcaps-utf.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/allcaps_utf.dic b/extensions/spellcheck/hunspell/tests/unit/data/allcaps-utf.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/allcaps_utf.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/allcaps-utf.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/allcaps_utf.good b/extensions/spellcheck/hunspell/tests/unit/data/allcaps-utf.good
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/allcaps_utf.good
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/allcaps-utf.good
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/allcaps_utf.sug b/extensions/spellcheck/hunspell/tests/unit/data/allcaps-utf.sug
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/allcaps_utf.sug
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/allcaps-utf.sug
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/allcaps_utf.test b/extensions/spellcheck/hunspell/tests/unit/data/allcaps-utf.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/allcaps_utf.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/allcaps-utf.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/allcaps_utf.wrong b/extensions/spellcheck/hunspell/tests/unit/data/allcaps-utf.wrong
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/allcaps_utf.wrong
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/allcaps-utf.wrong
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/base_utf.aff b/extensions/spellcheck/hunspell/tests/unit/data/base-utf.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/base_utf.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/base-utf.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/base_utf.dic b/extensions/spellcheck/hunspell/tests/unit/data/base-utf.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/base_utf.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/base-utf.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/base_utf.good b/extensions/spellcheck/hunspell/tests/unit/data/base-utf.good
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/base_utf.good
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/base-utf.good
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/base_utf.sug b/extensions/spellcheck/hunspell/tests/unit/data/base-utf.sug
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/base_utf.sug
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/base-utf.sug
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/base_utf.test b/extensions/spellcheck/hunspell/tests/unit/data/base-utf.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/base_utf.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/base-utf.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/base_utf.wrong b/extensions/spellcheck/hunspell/tests/unit/data/base-utf.wrong
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/base_utf.wrong
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/base-utf.wrong
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/colons_in_words.aff b/extensions/spellcheck/hunspell/tests/unit/data/colons-in-words.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/colons_in_words.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/colons-in-words.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/colons_in_words.dic b/extensions/spellcheck/hunspell/tests/unit/data/colons-in-words.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/colons_in_words.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/colons-in-words.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/colons_in_words.test b/extensions/spellcheck/hunspell/tests/unit/data/colons-in-words.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/colons_in_words.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/colons-in-words.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/condition_utf.aff b/extensions/spellcheck/hunspell/tests/unit/data/condition-utf.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/condition_utf.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/condition-utf.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/condition_utf.dic b/extensions/spellcheck/hunspell/tests/unit/data/condition-utf.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/condition_utf.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/condition-utf.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/condition_utf.good b/extensions/spellcheck/hunspell/tests/unit/data/condition-utf.good
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/condition_utf.good
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/condition-utf.good
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/condition_utf.test b/extensions/spellcheck/hunspell/tests/unit/data/condition-utf.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/condition_utf.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/condition-utf.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/condition_utf.wrong b/extensions/spellcheck/hunspell/tests/unit/data/condition-utf.wrong
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/condition_utf.wrong
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/condition-utf.wrong
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/digits_in_words.aff b/extensions/spellcheck/hunspell/tests/unit/data/digits-in-words.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/digits_in_words.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/digits-in-words.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/digits_in_words.dic b/extensions/spellcheck/hunspell/tests/unit/data/digits-in-words.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/digits_in_words.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/digits-in-words.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/digits_in_words.test b/extensions/spellcheck/hunspell/tests/unit/data/digits-in-words.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/digits_in_words.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/digits-in-words.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/digits_in_words.wrong b/extensions/spellcheck/hunspell/tests/unit/data/digits-in-words.wrong
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/digits_in_words.wrong
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/digits-in-words.wrong
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/ngram_utf_fix.aff b/extensions/spellcheck/hunspell/tests/unit/data/ngram-utf-fix.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/ngram_utf_fix.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/ngram-utf-fix.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/ngram_utf_fix.dic b/extensions/spellcheck/hunspell/tests/unit/data/ngram-utf-fix.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/ngram_utf_fix.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/ngram-utf-fix.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/ngram_utf_fix.good b/extensions/spellcheck/hunspell/tests/unit/data/ngram-utf-fix.good
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/ngram_utf_fix.good
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/ngram-utf-fix.good
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/ngram_utf_fix.sug b/extensions/spellcheck/hunspell/tests/unit/data/ngram-utf-fix.sug
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/ngram_utf_fix.sug
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/ngram-utf-fix.sug
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/ngram_utf_fix.test b/extensions/spellcheck/hunspell/tests/unit/data/ngram-utf-fix.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/ngram_utf_fix.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/ngram-utf-fix.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/ngram_utf_fix.wrong b/extensions/spellcheck/hunspell/tests/unit/data/ngram-utf-fix.wrong
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/ngram_utf_fix.wrong
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/ngram-utf-fix.wrong
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat.aff b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat.dic b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat.good b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat.good
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat.good
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat.good
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat.test b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat.wrong b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat.wrong
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat.wrong
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat.wrong
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat2.aff b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat2.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat2.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat2.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat2.dic b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat2.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat2.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat2.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat2.good b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat2.good
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat2.good
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat2.good
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat2.test b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat2.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat2.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat2.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat2.wrong b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat2.wrong
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_cpdpat2.wrong
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-cpdpat2.wrong
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword1.aff b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword1.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword1.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword1.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword1.dic b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword1.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword1.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword1.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword1.good b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword1.good
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword1.good
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword1.good
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword1.sug b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword1.sug
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword1.sug
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword1.sug
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword1.test b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword1.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword1.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword1.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword1.wrong b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword1.wrong
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword1.wrong
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword1.wrong
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword2.aff b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword2.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword2.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword2.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword2.dic b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword2.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword2.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword2.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword2.good b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword2.good
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword2.good
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword2.good
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword2.sug b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword2.sug
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword2.sug
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword2.sug
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword2.test b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword2.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword2.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword2.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword2.wrong b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword2.wrong
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_forbiddenword2.wrong
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-forbiddenword2.wrong
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_keepcase.aff b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-keepcase.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_keepcase.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-keepcase.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_keepcase.dic b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-keepcase.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_keepcase.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-keepcase.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_keepcase.good b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-keepcase.good
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_keepcase.good
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-keepcase.good
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_keepcase.sug b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-keepcase.sug
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_keepcase.sug
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-keepcase.sug
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_keepcase.test b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-keepcase.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_keepcase.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-keepcase.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/opentaal_keepcase.wrong b/extensions/spellcheck/hunspell/tests/unit/data/opentaal-keepcase.wrong
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/opentaal_keepcase.wrong
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/opentaal-keepcase.wrong
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_bom.aff b/extensions/spellcheck/hunspell/tests/unit/data/utf8-bom.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_bom.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-bom.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_bom.dic b/extensions/spellcheck/hunspell/tests/unit/data/utf8-bom.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_bom.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-bom.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_bom.good b/extensions/spellcheck/hunspell/tests/unit/data/utf8-bom.good
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_bom.good
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-bom.good
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_bom.test b/extensions/spellcheck/hunspell/tests/unit/data/utf8-bom.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_bom.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-bom.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_bom2.aff b/extensions/spellcheck/hunspell/tests/unit/data/utf8-bom2.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_bom2.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-bom2.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_bom2.dic b/extensions/spellcheck/hunspell/tests/unit/data/utf8-bom2.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_bom2.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-bom2.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_bom2.good b/extensions/spellcheck/hunspell/tests/unit/data/utf8-bom2.good
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_bom2.good
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-bom2.good
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_bom2.test b/extensions/spellcheck/hunspell/tests/unit/data/utf8-bom2.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_bom2.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-bom2.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_nonbmp.aff b/extensions/spellcheck/hunspell/tests/unit/data/utf8-nonbmp.aff
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_nonbmp.aff
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-nonbmp.aff
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_nonbmp.dic b/extensions/spellcheck/hunspell/tests/unit/data/utf8-nonbmp.dic
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_nonbmp.dic
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-nonbmp.dic
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_nonbmp.good b/extensions/spellcheck/hunspell/tests/unit/data/utf8-nonbmp.good
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_nonbmp.good
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-nonbmp.good
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_nonbmp.sug b/extensions/spellcheck/hunspell/tests/unit/data/utf8-nonbmp.sug
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_nonbmp.sug
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-nonbmp.sug
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_nonbmp.test b/extensions/spellcheck/hunspell/tests/unit/data/utf8-nonbmp.test
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_nonbmp.test
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-nonbmp.test
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/data/utf8_nonbmp.wrong b/extensions/spellcheck/hunspell/tests/unit/data/utf8-nonbmp.wrong
24df8e
rename from extensions/spellcheck/hunspell/tests/unit/data/utf8_nonbmp.wrong
24df8e
rename to extensions/spellcheck/hunspell/tests/unit/data/utf8-nonbmp.wrong
24df8e
diff --git a/extensions/spellcheck/hunspell/tests/unit/test_hunspell.js b/extensions/spellcheck/hunspell/tests/unit/test_hunspell.js
24df8e
--- a/extensions/spellcheck/hunspell/tests/unit/test_hunspell.js
24df8e
+++ b/extensions/spellcheck/hunspell/tests/unit/test_hunspell.js
24df8e
@@ -3,21 +3,21 @@
24df8e
  */
24df8e
 
24df8e
 const Cc = Components.classes;
24df8e
 const Ci = Components.interfaces;
24df8e
 
24df8e
 const tests = [
24df8e
     ["affixes", "iso-8859-1"],
24df8e
     ["condition", "iso-8859-1"],
24df8e
-    ["condition_utf", "UTF-8"],
24df8e
+    ["condition-utf", "UTF-8"],
24df8e
     ["base", "iso-8859-1"],
24df8e
-    ["base_utf", "UTF-8"],
24df8e
+    ["base-utf", "UTF-8"],
24df8e
     ["allcaps", "iso-8859-1"],
24df8e
-    ["allcaps_utf", "UTF-8"],
24df8e
+    ["allcaps-utf", "UTF-8"],
24df8e
     ["allcaps2", "iso-8859-1"],
24df8e
     ["allcaps3", "iso-8859-1"],
24df8e
     ["keepcase", "iso-8859-1"],
24df8e
     ["i58202", "iso-8859-1"],
24df8e
     ["map", "iso-8859-1"],
24df8e
     ["rep", "iso-8859-1"],
24df8e
     ["sug", "iso-8859-1"],
24df8e
     ["sugutf", "UTF-8"],
24df8e
@@ -43,19 +43,19 @@ const tests = [
24df8e
     ["fogemorpheme", "iso-8859-1"],
24df8e
     ["onlyincompound", "iso-8859-1"],
24df8e
     ["complexprefixes", "iso-8859-1"],
24df8e
     ["complexprefixes2", "iso-8859-1"],
24df8e
     ["complexprefixesutf", "UTF-8"],
24df8e
     ["conditionalprefix", "iso-8859-1"],
24df8e
     ["zeroaffix", "iso-8859-1"],
24df8e
     ["utf8", "UTF-8"],
24df8e
-    ["utf8_bom", "UTF-8", {1: "todo"}],
24df8e
-    ["utf8_bom2", "UTF-8", {1: "todo"}],
24df8e
-    ["utf8_nonbmp", "UTF-8", {1: "todo", 2: "todo", 3: "todo", 4: "todo"}],
24df8e
+    ["utf8-bom", "UTF-8", {1: "todo"}],
24df8e
+    ["utf8-bom2", "UTF-8", {1: "todo"}],
24df8e
+    ["utf8-nonbmp", "UTF-8", {1: "todo", 2: "todo", 3: "todo", 4: "todo"}],
24df8e
     ["compoundflag", "iso-8859-1"],
24df8e
     ["compoundrule", "iso-8859-1"],
24df8e
     ["compoundrule2", "iso-8859-1"],
24df8e
     ["compoundrule3", "iso-8859-1"],
24df8e
     ["compoundrule4", "iso-8859-1"],
24df8e
     ["compoundrule5", "UTF-8"],
24df8e
     ["compoundrule6", "iso-8859-1"],
24df8e
     ["compoundrule7", "iso-8859-1"],
24df8e
@@ -86,43 +86,43 @@ const tests = [
24df8e
     ["reputf", "UTF-8"],
24df8e
     ["ignore", "iso-8859-1"],
24df8e
     ["ignoreutf", "UTF-8",
24df8e
      {1: "todo", 2: "todo", 3: "todo", 4: "todo", 5: "todo", 6: "todo",
24df8e
       7: "todo", 8: "todo"}],
24df8e
     ["1592880", "iso-8859-1"],
24df8e
     ["1695964", "iso-8859-1"],
24df8e
     ["1463589", "iso-8859-1"],
24df8e
-    ["1463589_utf", "UTF-8"],
24df8e
+    ["1463589-utf", "UTF-8"],
24df8e
     ["IJ", "iso-8859-1"],
24df8e
     ["i68568", "iso-8859-1"],
24df8e
     ["i68568utf", "UTF-8"],
24df8e
     ["1706659", "iso-8859-1"],
24df8e
-    ["digits_in_words", "iso-8859-1"],
24df8e
-//    ["colons_in_words", "iso-8859-1"], Suggestion test only
24df8e
-    ["ngram_utf_fix", "UTF-8"],
24df8e
+    ["digits-in-words", "iso-8859-1"],
24df8e
+//    ["colons-in-words", "iso-8859-1"], Suggestion test only
24df8e
+    ["ngram-utf-fix", "UTF-8"],
24df8e
     ["morph", "us-ascii",
24df8e
      {11: "todo", 12: "todo", 13: "todo", 14: "todo", 15: "todo", 16: "todo",
24df8e
       17: "todo", 18: "todo", 19: "todo", 20: "todo", 21: "todo", 22: "todo",
24df8e
       23: "todo", 24: "todo", 25: "todo", 26: "todo", 27: "todo"}],
24df8e
     ["1975530", "UTF-8"],
24df8e
     ["fullstrip", "iso-8859-1"],
24df8e
     ["iconv", "UTF-8"],
24df8e
     ["oconv", "UTF-8"],
24df8e
     ["encoding", "iso-8859-1", {1: "todo", 3: "todo"}],
24df8e
     ["korean", "UTF-8"],
24df8e
-    ["opentaal_forbiddenword1", "UTF-8"],
24df8e
-    ["opentaal_forbiddenword2", "UTF-8"],
24df8e
-    ["opentaal_keepcase", "UTF-8"],
24df8e
+    ["opentaal-forbiddenword1", "UTF-8"],
24df8e
+    ["opentaal-forbiddenword2", "UTF-8"],
24df8e
+    ["opentaal-keepcase", "UTF-8"],
24df8e
     ["arabic", "UTF-8"],
24df8e
     ["2970240", "iso-8859-1"],
24df8e
     ["2970242", "iso-8859-1"],
24df8e
     ["breakoff", "iso-8859-1"],
24df8e
-    ["opentaal_cpdpat", "iso-8859-1"],
24df8e
-    ["opentaal_cpdpat2", "iso-8859-1"],
24df8e
+    ["opentaal-cpdpat", "iso-8859-1"],
24df8e
+    ["opentaal-cpdpat2", "iso-8859-1"],
24df8e
     ["2999225", "iso-8859-1"],
24df8e
     ["onlyincompound2", "iso-8859-1"],
24df8e
     ["forceucase", "iso-8859-1"],
24df8e
     ["warn", "iso-8859-1"]
24df8e
 ];
24df8e
 
24df8e
 function do_get_file_by_line(file, charset) {
24df8e
   dump("getting file by line for file " + file.path + "\n");
24df8e
diff --git a/extensions/spellcheck/tests/chrome/test_add_remove_dictionaries.xul b/extensions/spellcheck/tests/chrome/test_add_remove_dictionaries.xul
24df8e
--- a/extensions/spellcheck/tests/chrome/test_add_remove_dictionaries.xul
24df8e
+++ b/extensions/spellcheck/tests/chrome/test_add_remove_dictionaries.xul
24df8e
@@ -63,26 +63,26 @@ function RunTest() {
24df8e
   ok(map.exists());
24df8e
   hunspell.addDirectory(map);
24df8e
 
24df8e
   Components.utils.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm");
24df8e
   onSpellCheck(textbox, function () {
24df8e
 
24df8e
     // test that base and map dictionaries are available
24df8e
     var dicts = getDictionaryList(editor);
24df8e
-    isnot(dicts.indexOf("base_utf"), -1, "base is available");
24df8e
+    isnot(dicts.indexOf("base-utf"), -1, "base is available");
24df8e
     isnot(dicts.indexOf("maputf"), -1, "map is available");
24df8e
 
24df8e
     // select base dictionary
24df8e
-    setCurrentDictionary(editor, "base_utf");
24df8e
+    setCurrentDictionary(editor, "base-utf");
24df8e
 
24df8e
     onSpellCheck(textbox, function () {
24df8e
       // test that base dictionary is in use
24df8e
       is(getMisspelledWords(editor), "Frühstück" + "qwertyu", "base misspellings");
24df8e
-      is(getCurrentDictionary(editor), "base_utf", "current dictionary");
24df8e
+      is(getCurrentDictionary(editor), "base-utf", "current dictionary");
24df8e
 
24df8e
       // select map dictionary
24df8e
       setCurrentDictionary(editor, "maputf");
24df8e
 
24df8e
       onSpellCheck(textbox, function () {
24df8e
         // test that map dictionary is in use
24df8e
         is(getMisspelledWords(editor), "created" + "imply" + "tomorrow" + "qwertyu", "map misspellings");
24df8e
         is(getCurrentDictionary(editor), "maputf", "current dictionary");
24df8e
@@ -92,17 +92,17 @@ function RunTest() {
24df8e
 
24df8e
         onSpellCheck(textbox, function () {
24df8e
           // test that map dictionary is not in use
24df8e
           isnot(getMisspelledWords(editor), "created" + "imply" + "tomorrow" + "qwertyu", "map misspellings");
24df8e
           isnot(getCurrentDictionary(editor), "maputf", "current dictionary");
24df8e
 
24df8e
           // test that base dictionary is available and map dictionary is unavailable
24df8e
           var dicts = getDictionaryList(editor);
24df8e
-          isnot(dicts.indexOf("base_utf"), -1, "base is available");
24df8e
+          isnot(dicts.indexOf("base-utf"), -1, "base is available");
24df8e
           is(dicts.indexOf("maputf"), -1, "map is unavailable");
24df8e
 
24df8e
           // uninstall base dictionary
24df8e
           hunspell.removeDirectory(base);
24df8e
 
24df8e
           onSpellCheck(textbox, function () {
24df8e
             SimpleTest.finish();
24df8e
           });