Explicitely set coding system for unescaped string
authorDavid Maus <dmaus@ictsoc.de>
Sun, 18 Sep 2011 14:40:01 +0000 (16:40 +0200)
committerDavid Maus <dmaus@ictsoc.de>
Sun, 18 Sep 2011 14:40:01 +0000 (16:40 +0200)
* test-org.el (test-org/org-link-unescape-ascii-extended-char):
Explicitely set coding system for unescaped string.

Needed for Emacs22 to pass these tests. The input string is extended
ASCII which is covered by latin-1 coding system.

testing/lisp/test-org.el

index 1c81fac..00ccd81 100644 (file)
@@ -82,7 +82,7 @@
   (should
    (string=
     "àâçèéêîôùû"
-    (org-link-unescape "%E0%E2%E7%E8%E9%EA%EE%F4%F9%FB"))))
+        (decode-coding-string (org-link-unescape "%E0%E2%E7%E8%E9%EA%EE%F4%F9%FB") 'latin-1))))
 
 (ert-deftest test-org/org-link-escape-url-with-escaped-char ()
   "Escape and unscape a URL that includes an escaped char.