[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 44d743c: Added tests for dos unibyte decoding.
From: |
Andrew Hyatt |
Subject: |
[Emacs-diffs] master 44d743c: Added tests for dos unibyte decoding. |
Date: |
Sat, 21 May 2016 04:15:02 +0000 (UTC) |
branch: master
commit 44d743c20fa84fe041581dd3e0e2c5b9d86189e7
Author: Andrew Hyatt <address@hidden>
Commit: Andrew Hyatt <address@hidden>
Added tests for dos unibyte decoding.
The underlying bug was previously fixed by Eli Zaretskii in commit
c8109d9c4057d8cac79e2c139758cadd410e7446.
---
test/lisp/legacy/coding-tests.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/lisp/legacy/coding-tests.el b/test/lisp/legacy/coding-tests.el
index cba8c7b..772c873 100644
--- a/test/lisp/legacy/coding-tests.el
+++ b/test/lisp/legacy/coding-tests.el
@@ -48,3 +48,11 @@
(let ((coding-system-for-write (intern "\"us-ascii\"")))
(write-region "some text" nil test-file))))
(coding-tests-remove-files)))
+
+;; See issue #5251.
+(ert-deftest ert-test-unibyte-buffer-dos-eol-decode ()
+ (with-temp-buffer
+ (set-buffer-multibyte nil)
+ (insert (encode-coding-string "あ" 'euc-jp) "\xd" "\n")
+ (decode-coding-region (point-min) (point-max) 'euc-jp-dos)
+ (should-not (string-match-p "\^M" (buffer-string)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 44d743c: Added tests for dos unibyte decoding.,
Andrew Hyatt <=