Package: emacs25 Version: 25.2+1-6 Severity: grave Justification: causes non-serious data loss
Under some conditions, when saving a file with a BOM, the BOM *silently* gets removed, which is a major change (some applications, such as Firefox, are BOM-sensitive, so that this bug breaks things without knowing the cause). To reproduce the bug: 0. Uncompress the attached file (I used compression to make sure that it doesn't get corrupted by the mail system): unxz a.html.xz 1. cp a.html b.html 2. emacs -Q b.html 3. Type M-: (set-buffer-modified-p t) to mark the buffer as modified (so that one can save it). 4. Save the file with C-x C-s. 5. Quit with C-x C-c. 6. cmp a.html b.html This gives: a.html b.html differ: char 1, line 1 $ hd a.html | head -n 1 00000000 ef bb bf 3c 21 44 4f 43 54 59 50 45 20 68 74 6d |...<!DOCTYPE htm| $ hd b.html | head -n 1 00000000 3c 21 44 4f 43 54 59 50 45 20 68 74 6d 6c 20 50 |<!DOCTYPE html P| Note: There is a newer Emacs version upstream. I haven't tried it. -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.14.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages emacs25 depends on: ii emacs25-bin-common 25.2+1-6 ii libacl1 2.2.52-3+b1 ii libasound2 1.1.3-5 ii libatk1.0-0 2.26.1-1 ii libc6 2.25-3 ii libcairo-gobject2 1.14.10-1 ii libcairo2 1.14.10-1 ii libdbus-1-3 1.12.2-1 ii libfontconfig1 2.12.6-0.1 ii libfreetype6 2.6.3-3.2 ii libgdk-pixbuf2.0-0 2.36.11-1 ii libgif7 5.1.4-1 ii libglib2.0-0 2.54.2-1 ii libgnutls30 3.5.16-1 ii libgomp1 7.2.0-16 ii libgpm2 1.20.4-6.2+b1 ii libgtk-3-0 3.22.26-2 ii libice6 2:1.0.9-2 ii libjpeg62-turbo 1:1.5.2-2 ii libm17n-0 1.7.0-3+b2 ii libmagickcore-6.q16-3 8:6.9.7.4+dfsg-16 ii libmagickwand-6.q16-3 8:6.9.7.4+dfsg-16 ii libotf0 0.9.13-3+b1 ii libpango-1.0-0 1.40.13-2 ii libpangocairo-1.0-0 1.40.13-2 ii libpng16-16 1.6.34-1 ii librsvg2-2 2.40.18-2 ii libselinux1 2.7-2 ii libsm6 2:1.2.2-1+b3 ii libtiff5 4.0.8-6 ii libtinfo5 6.0+20171125-1 ii libx11-6 2:1.6.4-3 ii libx11-xcb1 2:1.6.4-3 ii libxcb1 1.12-1 ii libxfixes3 1:5.0.3-1 ii libxft2 2.3.2-1+b2 ii libxinerama1 2:1.1.3-1+b3 ii libxml2 2.9.4+dfsg1-5.1 ii libxpm4 1:3.5.12-1 ii libxrandr2 2:1.5.1-1 ii libxrender1 1:0.9.10-1 ii zlib1g 1:1.2.8.dfsg-5 emacs25 recommends no packages. Versions of packages emacs25 suggests: ii emacs25-common-non-dfsg 25.2+1-1 -- no debconf information
a.html.xz
Description: Binary data