[CFE] `PRESUBMIT` to handle dictionaries on Windows

Fixes #50891

Change-Id: Iddbbe17290548683bd141b74da5106a0be154bc9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/278345
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
diff --git a/pkg/front_end/test/spell_checking_utils.dart b/pkg/front_end/test/spell_checking_utils.dart
index ecf62e8..7ba8639 100644
--- a/pkg/front_end/test/spell_checking_utils.dart
+++ b/pkg/front_end/test/spell_checking_utils.dart
@@ -121,6 +121,7 @@
   void addWords(Uri uri, Set<String> dictionary) {
     for (String word in File.fromUri(uri)
         .readAsStringSync()
+        .replaceAll("\r\n", "\n")
         .split("\n")
         .map((s) => s.toLowerCase())) {
       if (word.startsWith("#")) continue;