Fixed unit test so that is does not depend on the current locale charset.
This commit is contained in:
parent
52e5d74bec
commit
19321f9026
@ -44,8 +44,26 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit parameter(const string& name);
|
/** Construct a parameter with no value.
|
||||||
|
* Charset is set to the current locale charset.
|
||||||
|
*
|
||||||
|
* @param name parameter name
|
||||||
|
*/
|
||||||
|
parameter(const string& name);
|
||||||
|
|
||||||
|
/** Construct a parameter given a name and a value.
|
||||||
|
*
|
||||||
|
* @param name parameter name
|
||||||
|
* @param value parameter value
|
||||||
|
*/
|
||||||
parameter(const string& name, const word& value);
|
parameter(const string& name, const word& value);
|
||||||
|
|
||||||
|
/** Construct a parameter given a name and a string value
|
||||||
|
* expressed in the current locale charset.
|
||||||
|
*
|
||||||
|
* @param name parameter name
|
||||||
|
* @param value parameter value
|
||||||
|
*/
|
||||||
parameter(const string& name, const string& value);
|
parameter(const string& name, const string& value);
|
||||||
|
|
||||||
|
|
||||||
|
@ -467,7 +467,9 @@ VMIME_TEST_SUITE_BEGIN(parameterTest)
|
|||||||
void testEncodeTSpecialsInRFC2231()
|
void testEncodeTSpecialsInRFC2231()
|
||||||
{
|
{
|
||||||
VASSERT_EQ("1", "filename*=UTF-8''my_file_name_%C3%B6%C3%A4%C3%BC_%281%29.txt",
|
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()
|
void testWhitespaceBreaksTheValue()
|
||||||
|
Loading…
Reference in New Issue
Block a user