message: build: fix spell checker on macOS
  Use alternate invocation for setlocale that sucessfully sets a language
  agnostic encoding as the locale.
  Risk Level: low
  Testing: n/a
  Doc Changes: n/a
  Release Notes: n/a
  Fixes:
diff: @@ -535,8 +535,11 @@ def execute(files, dictionary_file, fix):
  if __name__ == "__main__":
  - # Force UTF-8 across all open and popen calls. Use 'C' as the language
  - # to handle hosts where en_US is not recognized (e.g. CI).
  + # Force UTF-8 across all open and popen calls. Fallback to 'C' as the
  + # language to handle hosts where en_US is not recognized (e.g. CI).
  + try:
  + locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
  + except:
  locale.setlocale(locale.LC_ALL, 'C.UTF-8')
  default_dictionary = os.path.join(TOOLS_DIR, 'spelling_dictionary.txt')
  