From ecae17af35fa5bcb90743c0cea6e9486a44cf3af Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 13 Jun 2005 16:45:21 +0000 Subject: [PATCH] Fixed a bug in word parsing. --- tests/parser/textTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/parser/textTest.cpp b/tests/parser/textTest.cpp index 504c4a92..e43080df 100644 --- a/tests/parser/textTest.cpp +++ b/tests/parser/textTest.cpp @@ -144,6 +144,12 @@ namespace parseText("=?ISO-8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?=\r\n " \ "=?ISO-8859-2?B?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?=")); + // Bugfix: in "=?charset?q?=XX=YY?=", the "?=" finish + // sequence was not correctly found (should be the one + // after '=YY' and not the one after '?q'). + assert_eq("5", "[text: [[word: charset=abc, buffer=\xe9\xe9]]]", + parseText("=?abc?q?=E9=E9?=")); + // TODO: add more }