CI: check encoding of runtime files with utf-8 name
Commit:
https://github.com/vim/vim/commit/c035f518c333ff6d3915948398ade3086a573c3d
Author: Christian Brabandt <[email protected]>
Date: Sun Jan 25 18:03:30 2026 +0000
CI: check encoding of runtime files with utf-8 name
related: https://github.com/vim/vim/issues/19240
closes: https://github.com/vim/vim/issues/19253
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 18e880ded..ca25f908e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -84,7 +84,7 @@ jobs:
architecture: arm64
- features: normal
compiler: gcc
- extra: [vimtags, proto, preproc_indent]
+ extra: [vimtags, proto, preproc_indent, encoding]
- features: huge
compiler: gcc
extra: [no_x11_wl]
@@ -373,6 +373,17 @@ jobs:
true
)
+ - name: Check encoding of utf-8 runtime files
+ if: contains(matrix.extra, 'encoding')
+ run: |
+ # This will exit with an error code if utf-8 runtime files are not
in utf-8 encoding
+ (
+ find . -type f -name "*utf-8*.vim" -exec sh -c \
+ 'iconv -f utf-8 -t utf-8 "$1" >/dev/null 2>&1 || echo "non utf-8
encoding detected in $1"' \
+ find-sh {} \; |grep "non utf-8 encoding" && exit 3
+ true
+ )
+
- name: Generate gcov files
if: matrix.coverage
run: |
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vk4dc-00DRV4-VA%40256bit.org.