aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/parameterTest.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2015-02-19 20:24:41 +0000
committerVincent Richard <[email protected]>2015-02-19 20:24:41 +0000
commit19321f9026ea5b49a226f47b12be02f3a02795c9 (patch)
tree4de2725957db5572c80c71dc7ed822cbeead94dc /tests/parser/parameterTest.cpp
parentMade word/parameter constructor with 'string' explicit to avoid implicit use ... (diff)
downloadvmime-19321f9026ea5b49a226f47b12be02f3a02795c9.tar.gz
vmime-19321f9026ea5b49a226f47b12be02f3a02795c9.zip
Fixed unit test so that is does not depend on the current locale charset.
Diffstat (limited to 'tests/parser/parameterTest.cpp')
-rw-r--r--tests/parser/parameterTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/parser/parameterTest.cpp b/tests/parser/parameterTest.cpp
index cf8f8477..41af3fdd 100644
--- a/tests/parser/parameterTest.cpp
+++ b/tests/parser/parameterTest.cpp
@@ -467,7 +467,9 @@ VMIME_TEST_SUITE_BEGIN(parameterTest)
void testEncodeTSpecialsInRFC2231()
{
VASSERT_EQ("1", "filename*=UTF-8''my_file_name_%C3%B6%C3%A4%C3%BC_%281%29.txt",
- vmime::make_shared <vmime::parameter>("filename", "my_file_name_\xc3\xb6\xc3\xa4\xc3\xbc_(1).txt")->generate());
+ vmime::make_shared <vmime::parameter>
+ ("filename",
+ vmime::word("my_file_name_\xc3\xb6\xc3\xa4\xc3\xbc_(1).txt", "UTF-8"))->generate());
}
void testWhitespaceBreaksTheValue()