Changeset 2303 for pjproject/trunk/pjsip/src/test-pjsip/uri_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/uri_test.c
r2287 r2303 79 79 static pjsip_uri *create_uri35( pj_pool_t *pool ); 80 80 static pjsip_uri *create_uri36( pj_pool_t *pool ); 81 static pjsip_uri *create_uri37( pj_pool_t *pool ); 82 static pjsip_uri *create_uri38( pj_pool_t *pool ); 81 83 static pjsip_uri *create_dummy( pj_pool_t *pool ); 82 84 … … 333 335 &create_uri36, 334 336 "sip:[::1];maddr=[::01]" 337 }, 338 { 339 /* 37: Non-ASCII UTF-8 in display name, with quote */ 340 PJ_SUCCESS, 341 "\"\xC0\x81\" <sip:localhost>", 342 &create_uri37, 343 "\"\xC0\x81\" <sip:localhost>" 344 }, 345 { 346 /* 38: Non-ASCII UTF-8 in display name, without quote */ 347 PJ_SUCCESS, 348 "\xC0\x81 <sip:localhost>", 349 &create_uri38, 350 "\"\xC0\x81\" <sip:localhost>" 335 351 } 336 352 … … 704 720 url->maddr_param = pj_str("::01"); 705 721 return (pjsip_uri*)url; 722 723 } 724 725 /* "\"\xC0\x81\" <sip:localhost>" */ 726 static pjsip_uri *create_uri37( pj_pool_t *pool ) 727 { 728 pjsip_name_addr *name; 729 pjsip_sip_uri *url; 730 731 name = pjsip_name_addr_create(pool); 732 name->display = pj_str("\xC0\x81"); 733 734 url = pjsip_sip_uri_create(pool, 0); 735 url->host = pj_str("localhost"); 736 737 name->uri = (pjsip_uri*)url; 738 739 return (pjsip_uri*)name; 740 741 } 742 743 /* "\xC0\x81 <sip:localhost>" */ 744 static pjsip_uri *create_uri38( pj_pool_t *pool ) 745 { 746 pjsip_name_addr *name; 747 pjsip_sip_uri *url; 748 749 name = pjsip_name_addr_create(pool); 750 name->display = pj_str("\xC0\x81"); 751 752 url = pjsip_sip_uri_create(pool, 0); 753 url->host = pj_str("localhost"); 754 755 name->uri = (pjsip_uri*)url; 756 757 return (pjsip_uri*)name; 706 758 707 759 }
Note: See TracChangeset
for help on using the changeset viewer.