diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-28 00:16:22 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-28 00:16:22 -0600 |
| commit | 35e8172e6b3b11a679e2da5540b3df024650ebe3 (patch) | |
| tree | 8e0538ad05bf95d11a7c55f0600e03268fea0863 | |
| parent | 5b21c155a9539bfe3c55d2ba6bbe7073e23ab6c5 (diff) | |
| download | whoson-35e8172e6b3b11a679e2da5540b3df024650ebe3.tar.gz | |
Scope the z/OS encoding to ASCII-only files
The blanket zos-working-tree-encoding=ISO8859-1 made a z/OS git clone
fail at checkout: README.md has em dashes, which ISO8859-1 cannot
represent. Tag only the sources, Makefile and buildenv, which are ASCII.
| -rw-r--r-- | .gitattributes | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/.gitattributes b/.gitattributes index b9edfc0..5d47ad0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,9 +1,9 @@ -# z/OS: check text out tagged ISO8859-1 so the ASCII-tagged sources compile -# without a conversion step, while history stays UTF-8. +# z/OS: tag the files Open XL reads as ISO8859-1 so the ASCII character mode +# needs no conversion step, while history stays UTF-8. Only ASCII-only files +# can take this: a character ISO8859-1 cannot represent, such as the em dash +# in README.md, makes `git clone` on z/OS fail at checkout. * text=auto eol=lf -* zos-working-tree-encoding=ISO8859-1 git-encoding=ISO8859-1 *.c text zos-working-tree-encoding=iso8859-1 git-encoding=utf-8 *.h text zos-working-tree-encoding=iso8859-1 git-encoding=utf-8 -*.sh text zos-working-tree-encoding=iso8859-1 git-encoding=utf-8 -*.md text zos-working-tree-encoding=iso8859-1 git-encoding=utf-8 Makefile text zos-working-tree-encoding=iso8859-1 git-encoding=utf-8 +buildenv text zos-working-tree-encoding=iso8859-1 git-encoding=utf-8 |
