]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
CI: check encoding of runtime files with utf-8 name
authorChristian Brabandt <cb@256bit.org>
Sun, 25 Jan 2026 18:03:30 +0000 (18:03 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 25 Jan 2026 18:04:44 +0000 (18:04 +0000)
related: #19240
closes:  #19253

Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/workflows/ci.yml

index 18e880ded57e00f5b6e4259613305f137948ff92..ca25f908e2f8334d5c42ecdbbfcdd2fcf5bba565 100644 (file)
@@ -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: |