Changeset 2303 for pjproject/trunk/pjsip/src/test-pjsip/msg_test.c
- Timestamp:
- Sep 21, 2008 10:01:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test-pjsip/msg_test.c
r2286 r2303 807 807 static int hdr_test_via_ipv6_3(pjsip_hdr *h); 808 808 static int hdr_test_retry_after1(pjsip_hdr *h); 809 static int hdr_test_subject_utf(pjsip_hdr *h); 809 810 810 811 … … 1023 1024 "10(Already Pending Register)", 1024 1025 &hdr_test_retry_after1 1026 }, 1027 1028 { 1029 /* Non-ASCII UTF-8 characters in Subject */ 1030 "Subject", NULL, 1031 "\xC0\x81", 1032 &hdr_test_subject_utf 1025 1033 } 1026 1034 }; … … 1695 1703 if (pj_strcmp2(&hdr->comment, "Already Pending Register")) 1696 1704 return -2930; 1705 1706 return 0; 1707 } 1708 1709 /* Subject: \xC0\x81 */ 1710 static int hdr_test_subject_utf(pjsip_hdr *h) 1711 { 1712 pjsip_subject_hdr *hdr = (pjsip_subject_hdr*)h; 1713 1714 if (pj_strcmp2(&h->name, "Subject")) 1715 return -2950; 1716 1717 if (pj_strcmp2(&hdr->hvalue, "\xC0\x81")) 1718 return -2960; 1697 1719 1698 1720 return 0;
Note: See TracChangeset
for help on using the changeset viewer.