1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

Update lists of non-UTF files

* .gitattributes: Don't diff text files with encodings
incompatible with UTF-8.  Add some new binary file extensions,
like '.webp'.  etc/e/eterm-direct and java/emacs.keystore
are also binary.
* admin/notes/unicode: Update similarly.
This commit is contained in:
Paul Eggert 2023-08-11 23:09:39 -07:00
parent be3cae9f55
commit f611c5be21
2 changed files with 43 additions and 9 deletions

28
.gitattributes vendored
View file

@ -17,13 +17,11 @@
# You should have received a copy of the GNU General Public License
# along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
# A few files use CRLF endings, even on non-Microsoft platforms.
# A few UTF-8-compatible text files use CRLF endings,
# even on non-Microsoft platforms.
# Do not warn about trailing whitespace with these files.
*.bat whitespace=cr-at-eol
admin/charsets/mapfiles/PTCP154 whitespace=cr-at-eol
leim/MISC-DIC/cangjie-table.b5 whitespace=cr-at-eol
leim/MISC-DIC/cangjie-table.cns whitespace=cr-at-eol
leim/MISC-DIC/pinyin.map whitespace=cr-at-eol
test/manual/etags/c-src/dostorture.c whitespace=cr-at-eol
test/manual/etags/cp-src/c.C whitespace=cr-at-eol
test/manual/etags/html-src/algrthms.html whitespace=cr-at-eol
@ -31,19 +29,41 @@ test/manual/etags/html-src/algrthms.html whitespace=cr-at-eol
# The todo-mode file format includes trailing whitespace.
*.tod[aorty] -whitespace=blank-at-eol
# The following text files use encodings incompatible with UTF-8.
# They should not be treated as text when diffing, as that could
# cause the output to mix encodings.
*.tit -diff
admin/charsets/mapfiles/cns2ucsdkw.txt -diff
leim/MISC-DIC/CTLau* -diff
leim/MISC-DIC/cangjie-table.* -diff
leim/MISC-DIC/pinyin.map -diff
leim/MISC-DIC/ziranma.cin -diff
leim/SKK-DIC/SKK-JISYO.L -diff
src/msdos.c -diff
test/lisp/gnus/mm-decode-resources/win1252-multipart.bin -diff
# Some files should not be treated as text when diffing or merging.
*.bmp binary
*.cur binary
*.gif binary
*.gpg binary
*.gz binary
*.icns binary
*.ico binary
*.jpg binary
*.kbx binary
*.key binary
*.pbm binary
*.pdf binary
*.pif binary
*.png binary
*.sig binary
*.tiff binary
*.webp binary
*.zip binary
etc/e/eterm-color binary
etc/e/eterm-direct binary
java/emacs.keystore binary
# Git's builtin diff hunk header styles.
*.ad[abs] diff=ada

View file

@ -305,6 +305,12 @@ nontrivial changes to the build process.
src/msdos.c
* iso-latin-1
This file is used to test Emacs encoding.
test/lisp/gnus/mm-decode-resources/win1252-multipart.bin
* iso-2022-cn-ext
This file is externally generated from leim/MISC-DIC/cangjie-table.b5
@ -355,19 +361,27 @@ nontrivial changes to the build process.
Some of the entries in this list are patterns, and stand for any
files with the listed extension.
*.bmp
*.cur
*.gif
*.gpg
*.gz
*.icns
*.ico
*.jpg
*.kbx
*.key
*.pbm
*.pdf
*.pif
*.png
*.sig
*.tiff
*.webp
*.zip
etc/e/eterm-color
etc/package-keyring.gpg
msdos/emacs.pif
nextstep/GNUstep/Emacs.base/Resources/emacs.tiff
nt/icons/hand.cur
etc/e/eterm-direct
java/emacs.keystore
This file is part of GNU Emacs.