Build packages for Ubuntu Trusty Tahr 14.04 LTS
[yaz-moved-to-github.git] / test / test_iconv.c
index ab05cee..c418908 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
  * See the file LICENSE for details.
  */
 #if HAVE_CONFIG_H
@@ -697,6 +697,7 @@ static void tst_danmarc_to_utf8(void)
     YAZ_CHECK(tst_convert(cd, "@*",  "*"));
     YAZ_CHECK(tst_convert(cd, "@@",  "@"));
     YAZ_CHECK(tst_convert(cd, "@\xa4",  "\xC2\xA4"));
+    YAZ_CHECK(tst_convert(cd, "\xa4",  "\xC2\xA4"));
     YAZ_CHECK(tst_convert(cd, "@\xe5", "\xEA\x9C\xB3"));
     YAZ_CHECK(tst_convert(cd, "@\xc5.", "\xEA\x9C\xB2" "."));
 
@@ -723,7 +724,7 @@ static void tst_utf8_to_danmarc(void)
 
     YAZ_CHECK(tst_convert(cd, "*",  "@*"));
     YAZ_CHECK(tst_convert(cd, "@", "@@"));
-    YAZ_CHECK(tst_convert(cd, "\xC2\xA4", "@\xa4"));
+    YAZ_CHECK(tst_convert(cd, "\xC2\xA4", "\xa4"));
 
     YAZ_CHECK(tst_convert(cd, "a\xc3\xa5" "b", "a\xe5" "b")); /* aring */
     YAZ_CHECK(tst_convert(cd, "a\xce\xbb" "b", "a@03BBb")); /* lambda */