From 6bdb6102c06c605d18f5d2cfba8ac806875ae13a Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 04 Jan 2011 17:00:35 -0500
Subject: [PATCH] Do charset detection in vcards with encoded values (#1485542)

---
 tests/vcards.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/vcards.php b/tests/vcards.php
index 72c6874..3b8f260 100644
--- a/tests/vcards.php
+++ b/tests/vcards.php
@@ -48,6 +48,10 @@
     $this->assertEqual(2, count($vcards), "Detected 2 vcards");
     $this->assertEqual("Apple Computer AG", $vcards[0]->displayname, "FN => displayname");
     $this->assertEqual("John Doë", $vcards[1]->displayname, "Displayname with correct charset");
+    
+    // http://trac.roundcube.net/ticket/1485542
+    $vcards2 = rcube_vcard::import(file_get_contents($this->_srcpath('thebat.vcf')));
+    $this->assertEqual("Iksiñski", $vcards2[0]->surname, "Detect charset in encoded values");
   }
   
 }

--
Gitblit v1.9.1