We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c80c0 commit 3d3e046Copy full SHA for 3d3e046
.github/workflows/check_misc.yml
@@ -38,9 +38,18 @@ jobs:
38
# Skip 'push' events because post_push.yml fixes them on push
39
if: ${{ github.repository == 'ruby/ruby' && startsWith(github.event_name, 'pull') }}
40
41
- # - name: Check if C-sources are UTF-8
42
- # run: |
43
- # grep -r -n --exclude-dir=vendor --include='*.[chyS]' --include='*.asm' $'[^\t-~]' -- . && exit 1 || :
+ - name: Check if C-sources are UTF-8
+ run: |
+ #!ruby
44
+ ok = true
45
+ Dir.glob("*.{[chyS],asm}") do |f|
46
+ unless File.binread(f).force_encoding(Encoding::UTF_8).valid_encoding?
47
+ ok = false
48
+ puts f
49
+ end
50
51
+ exit ok
52
+ shell: ruby {0}
53
54
- name: Check for bash specific substitution in configure.ac
55
run: |
0 commit comments