https://bugzilla.novell.com/show_bug.cgi?id=896947 https://bugzilla.novell.com/show_bug.cgi?id=896947#c0 Summary: xemacs writes wrong file encoding Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: i686 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ralfixx@gmx.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0 Xemacs writes a file with the wrong encoding: latin-9 was requested (single byte umlauts), but utf-8 is written. If xemacs is started without site-file, the bug does not occur. The reason for the bug is in the Opensuse specific startup files in /usr/share/xemacs/site-packages/lisp/site-start.el (see below). Reproducible: Always Steps to Reproduce: - Start xemacs with the default language set to UTF-8 env LANG=de_DE.UTF-8 xemacs -q - Load a new file and specify the encoding differently C-u C-x C-f /tmp/nf.txt RET latin-9 RET - Modeline indicates "Latin-9" - Enter Umlauts äöü, save file. - Check saved file contents: file size should be 3 Actual Results: file size is 6, sile is saved as utf8 though latin-9 was requested when loading the file. Expected Results: file size should be 3, file written in single-byte encoding. The reason is in the Opensuse specific startup files in /usr/share/xemacs/site-packages/lisp/site-start.el which first loads /usr/lib/ispell/ispell-emacs-menu.el and then executes the (suse-set-coding-systems) function. Specifically the (copy-coding-system 'iso-8859-15 'iso-latin-9) in ispell-emacs-menu.el triggers the bug. If this is commented out, the bug does not occur. Also if (suse-set-coding-systems) is not invoked, the bug is not triggered. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.