[Bug 656190] New: GNUEmacs does not handle correctly DOS files with CR/LF line ending
https://bugzilla.novell.com/show_bug.cgi?id=656190 https://bugzilla.novell.com/show_bug.cgi?id=656190#c0 Summary: GNUEmacs does not handle correctly DOS files with CR/LF line ending Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: la@oktagramm.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729) GNUEmacs normally can read an write files with different line endings (LF on Unix, CR/LF on Windows and CR on Mac). But GNUEmacs from OpenSuse 11.3 does not handle that correctly. When I open a file with CR/LF line breaks using C-x RET c (universal-coding-system-argument) with iso-8859-15-dos as encoding, ^M is shown at the end of every line. When I write a new file requesting iso-8859-15-dos as encoding, only LF is written at the end of the lines (as can be verified with hexdump). This seems to be an error in OpenSuse's build of GNUEmacs, because on Knoppix 6.1, OpenBSD and Solaris it works correctly (maybe with different versions of Emacs). XEmacs on OpenSuse does not show this error and reads and writes files with the desired encoding. Special characters as german umlauts are correctly translated between e.g. utf-8 and iso-8859-15. It's just the line breaks that go wrong. Reproducible: Always Steps to Reproduce: 1. Get a textfile with CR/LF line breaks. 2. Open Emacs 3. Use the key sequence "c-x RET c iso-8859-15-dos c-x c-f" to open the file. 1. Create a new file in Emacs 2. Use the key sequence "c-x RET c iso-8859-15-dos c-x c-w" to write it to disk Actual Results: The file is read as if it had just LF line breaks and ^M ist shown at the end of every line. The new file just contains LF line breaks. Expected Results: The expected result ist not to show ^M while reading and newly created files should have CR/LF line breaks. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=656190
https://bugzilla.novell.com/show_bug.cgi?id=656190#c2
Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com