Add CheckNoNonAsciiCharactersInFiles support.

Non ASCII characters in files can cause warnings on Windows which
are treated as errors now.  Add this function to canned check so
we can use it to issue warning if there is any non ASCII characters
in the change content.

Change-Id: Ifdfc8324185b452b7bffc2671aa5a5f916305ef6
1 file changed
tree: 55cf8800156bd82020bf948998ac2291abf1ba4a
  1. .gitignore
  2. .style.yapf
  3. LICENSE
  4. OWNERS
  5. PRESUBMIT.py
  6. README
  7. README.codereview
  8. README.gclient
  9. README.git-cl
  10. README.ninja
  11. README.testing
  12. WATCHLISTS
  13. annotated_gclient.py
  14. apply_issue
  15. apply_issue.bat
  16. apply_issue.py
  17. auth.py
  18. bootstrap/
  19. breakpad.py
  20. buildbucket.py
  21. checkout.py
  22. chrome-update-create-task.bat
  23. chrome-update.bat
  24. chrome-update.py
  25. cit
  26. cit.bat
  27. cit.py
  28. clang-format
  29. clang-format.bat
  30. clang_format.py
  31. codereview.settings
  32. commit_queue
  33. commit_queue.bat
  34. commit_queue.py
  35. cpplint.bat
  36. cpplint.py
  37. cpplint_chromium.py
  38. create-chromium-git-src
  39. create-ntfs-junction.c
  40. create-ntfs-junction.exe
  41. dart_format.py
  42. depot-tools-auth
  43. depot-tools-auth.bat
  44. depot-tools-auth.py
  45. download_from_google_storage
  46. download_from_google_storage.bat
  47. download_from_google_storage.py
  48. drover
  49. drover.bat
  50. drover.py
  51. fetch
  52. fetch.bat
  53. fetch.py
  54. fix_encoding.py
  55. gcl
  56. gcl.bat
  57. gcl.py
  58. gclient
  59. gclient-new-workdir.py
  60. gclient.bat
  61. gclient.py
  62. gclient_completion.sh
  63. gclient_scm.py
  64. gclient_utils.py
  65. gerrit_util.py
  66. git-auto-svn
  67. git-cache
  68. git-cherry-pick-upload
  69. git-cl
  70. git-cl-upload-hook
  71. git-crrev-parse
  72. git-crsync
  73. git-crup
  74. git-footers
  75. git-freeze
  76. git-gs
  77. git-lg
  78. git-lkgr
  79. git-map
  80. git-map-branches
  81. git-mark-merge-base
  82. git-nav-downstream
  83. git-nav-upstream
  84. git-new-branch
  85. git-number
  86. git-rebase-update
  87. git-rename-branch
  88. git-reparent-branch
  89. git-retry
  90. git-runhooks
  91. git-squash-branch
  92. git-templates/
  93. git-thaw
  94. git-try
  95. git-upstream-diff
  96. git_auto_svn.py
  97. git_cache.py
  98. git_cherry_pick_upload.py
  99. git_cl.py
  100. git_common.py
  101. git_footers.py
  102. git_freezer.py
  103. git_map.py
  104. git_map_branches.py
  105. git_mark_merge_base.py
  106. git_nav_downstream.py
  107. git_new_branch.py
  108. git_number.py
  109. git_rebase_update.py
  110. git_rename_branch.py
  111. git_reparent_branch.py
  112. git_retry.py
  113. git_squash_branch.py
  114. git_try.py
  115. git_upstream_diff.py
  116. git_utils/
  117. gn
  118. gn.bat
  119. gn.py
  120. gsutil.py
  121. hammer
  122. hammer.bat
  123. infra/
  124. install-git-config-upstream.py
  125. install_git_config_upstream
  126. install_git_config_upstream.bat
  127. man/
  128. my_activity.py
  129. my_reviews.py
  130. ninja
  131. ninja-linux32
  132. ninja-linux64
  133. ninja-mac
  134. ninja-win.exe
  135. ninja.bat
  136. owners.py
  137. owners_finder.py
  138. patch.py
  139. perl.bat
  140. presubmit_canned_checks.py
  141. presubmit_support.py
  142. profile.xml
  143. pylint
  144. pylint.py
  145. pylintrc
  146. python_git_runner.sh
  147. recipes/
  148. repo
  149. rietveld.py
  150. roll-dep
  151. roll-dep-svn
  152. roll-dep-svn.bat
  153. roll-dep.bat
  154. roll_dep.py
  155. roll_dep_svn.py
  156. scm.py
  157. simple_echo.exe
  158. subcommand.py
  159. subprocess2.py
  160. support/
  161. testing_support/
  162. tests/
  163. third_party/
  164. trychange.py
  165. update_depot_tools
  166. update_depot_tools.bat
  167. upload_to_google_storage.py
  168. watchlists.py
  169. weekly
  170. win_toolchain/
  171. wtf
  172. zsh-goodies/