diff options
| author | Paul Eggert | 2023-08-11 23:09:39 -0700 |
|---|---|---|
| committer | Paul Eggert | 2023-08-11 23:10:29 -0700 |
| commit | f611c5be210a552256799ee95ef72a74efbfdd1d (patch) | |
| tree | 1ece1ea619e3309a3a63ae89e0b854450d16c08e | |
| parent | be3cae9f559015219af07dd63170dded2fb64056 (diff) | |
| download | emacs-f611c5be210a552256799ee95ef72a74efbfdd1d.tar.gz emacs-f611c5be210a552256799ee95ef72a74efbfdd1d.zip | |
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.
| -rw-r--r-- | .gitattributes | 28 | ||||
| -rw-r--r-- | admin/notes/unicode | 24 |
2 files changed, 43 insertions, 9 deletions
diff --git a/.gitattributes b/.gitattributes index d9288b27d0f..b56f0ec617d 100644 --- a/.gitattributes +++ b/.gitattributes | |||
| @@ -17,13 +17,11 @@ | |||
| 17 | # You should have received a copy of the GNU General Public License | 17 | # You should have received a copy of the GNU General Public License |
| 18 | # along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. | 18 | # along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. |
| 19 | 19 | ||
| 20 | # A few files use CRLF endings, even on non-Microsoft platforms. | 20 | # A few UTF-8-compatible text files use CRLF endings, |
| 21 | # even on non-Microsoft platforms. | ||
| 21 | # Do not warn about trailing whitespace with these files. | 22 | # Do not warn about trailing whitespace with these files. |
| 22 | *.bat whitespace=cr-at-eol | 23 | *.bat whitespace=cr-at-eol |
| 23 | admin/charsets/mapfiles/PTCP154 whitespace=cr-at-eol | 24 | admin/charsets/mapfiles/PTCP154 whitespace=cr-at-eol |
| 24 | leim/MISC-DIC/cangjie-table.b5 whitespace=cr-at-eol | ||
| 25 | leim/MISC-DIC/cangjie-table.cns whitespace=cr-at-eol | ||
| 26 | leim/MISC-DIC/pinyin.map whitespace=cr-at-eol | ||
| 27 | test/manual/etags/c-src/dostorture.c whitespace=cr-at-eol | 25 | test/manual/etags/c-src/dostorture.c whitespace=cr-at-eol |
| 28 | test/manual/etags/cp-src/c.C whitespace=cr-at-eol | 26 | test/manual/etags/cp-src/c.C whitespace=cr-at-eol |
| 29 | test/manual/etags/html-src/algrthms.html whitespace=cr-at-eol | 27 | 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 | |||
| 31 | # The todo-mode file format includes trailing whitespace. | 29 | # The todo-mode file format includes trailing whitespace. |
| 32 | *.tod[aorty] -whitespace=blank-at-eol | 30 | *.tod[aorty] -whitespace=blank-at-eol |
| 33 | 31 | ||
| 32 | # The following text files use encodings incompatible with UTF-8. | ||
| 33 | # They should not be treated as text when diffing, as that could | ||
| 34 | # cause the output to mix encodings. | ||
| 35 | *.tit -diff | ||
| 36 | admin/charsets/mapfiles/cns2ucsdkw.txt -diff | ||
| 37 | leim/MISC-DIC/CTLau* -diff | ||
| 38 | leim/MISC-DIC/cangjie-table.* -diff | ||
| 39 | leim/MISC-DIC/pinyin.map -diff | ||
| 40 | leim/MISC-DIC/ziranma.cin -diff | ||
| 41 | leim/SKK-DIC/SKK-JISYO.L -diff | ||
| 42 | src/msdos.c -diff | ||
| 43 | test/lisp/gnus/mm-decode-resources/win1252-multipart.bin -diff | ||
| 44 | |||
| 34 | # Some files should not be treated as text when diffing or merging. | 45 | # Some files should not be treated as text when diffing or merging. |
| 46 | *.bmp binary | ||
| 35 | *.cur binary | 47 | *.cur binary |
| 48 | *.gif binary | ||
| 36 | *.gpg binary | 49 | *.gpg binary |
| 37 | *.gz binary | 50 | *.gz binary |
| 38 | *.icns binary | 51 | *.icns binary |
| 39 | *.ico binary | 52 | *.ico binary |
| 53 | *.jpg binary | ||
| 54 | *.kbx binary | ||
| 55 | *.key binary | ||
| 40 | *.pbm binary | 56 | *.pbm binary |
| 41 | *.pdf binary | 57 | *.pdf binary |
| 42 | *.pif binary | 58 | *.pif binary |
| 43 | *.png binary | 59 | *.png binary |
| 44 | *.sig binary | 60 | *.sig binary |
| 45 | *.tiff binary | 61 | *.tiff binary |
| 62 | *.webp binary | ||
| 63 | *.zip binary | ||
| 46 | etc/e/eterm-color binary | 64 | etc/e/eterm-color binary |
| 65 | etc/e/eterm-direct binary | ||
| 66 | java/emacs.keystore binary | ||
| 47 | 67 | ||
| 48 | # Git's builtin diff hunk header styles. | 68 | # Git's builtin diff hunk header styles. |
| 49 | *.ad[abs] diff=ada | 69 | *.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. | |||
| 305 | 305 | ||
| 306 | src/msdos.c | 306 | src/msdos.c |
| 307 | 307 | ||
| 308 | * iso-latin-1 | ||
| 309 | |||
| 310 | This file is used to test Emacs encoding. | ||
| 311 | |||
| 312 | test/lisp/gnus/mm-decode-resources/win1252-multipart.bin | ||
| 313 | |||
| 308 | * iso-2022-cn-ext | 314 | * iso-2022-cn-ext |
| 309 | 315 | ||
| 310 | This file is externally generated from leim/MISC-DIC/cangjie-table.b5 | 316 | This file is externally generated from leim/MISC-DIC/cangjie-table.b5 |
| @@ -355,19 +361,27 @@ nontrivial changes to the build process. | |||
| 355 | Some of the entries in this list are patterns, and stand for any | 361 | Some of the entries in this list are patterns, and stand for any |
| 356 | files with the listed extension. | 362 | files with the listed extension. |
| 357 | 363 | ||
| 364 | *.bmp | ||
| 365 | *.cur | ||
| 366 | *.gif | ||
| 367 | *.gpg | ||
| 358 | *.gz | 368 | *.gz |
| 359 | *.icns | 369 | *.icns |
| 360 | *.ico | 370 | *.ico |
| 371 | *.jpg | ||
| 372 | *.kbx | ||
| 373 | *.key | ||
| 361 | *.pbm | 374 | *.pbm |
| 362 | 375 | ||
| 376 | *.pif | ||
| 363 | *.png | 377 | *.png |
| 364 | *.sig | 378 | *.sig |
| 379 | *.tiff | ||
| 380 | *.webp | ||
| 381 | *.zip | ||
| 365 | etc/e/eterm-color | 382 | etc/e/eterm-color |
| 366 | etc/package-keyring.gpg | 383 | etc/e/eterm-direct |
| 367 | msdos/emacs.pif | 384 | java/emacs.keystore |
| 368 | nextstep/GNUstep/Emacs.base/Resources/emacs.tiff | ||
| 369 | nt/icons/hand.cur | ||
| 370 | |||
| 371 | 385 | ||
| 372 | This file is part of GNU Emacs. | 386 | This file is part of GNU Emacs. |
| 373 | 387 | ||