From: Paul Eggert Date: Sat, 12 Aug 2023 06:09:39 +0000 (-0700) Subject: Update lists of non-UTF files X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f611c5be210a552256799ee95ef72a74efbfdd1d;p=emacs.git 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. --- diff --git a/.gitattributes b/.gitattributes index d9288b27d0f..b56f0ec617d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -17,13 +17,11 @@ # You should have received a copy of the GNU General Public License # along with GNU Emacs. If not, see . -# 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 diff --git a/admin/notes/unicode b/admin/notes/unicode index b4f23f68def..da4736c43c6 100644 --- a/admin/notes/unicode +++ b/admin/notes/unicode @@ -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.