summaryrefslogtreecommitdiff
path: root/source4/pidl/tests/ndr_string.pl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-14 00:27:38 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:50:12 +0100
commit584044d5e7148c5135518500ba81caece092c04a (patch)
tree82440a7ce5e9369746fa0070bce168db3dfe7841 /source4/pidl/tests/ndr_string.pl
parent96a200511e884a88dcf48fa5b313b2cddb2df566 (diff)
downloadsamba-584044d5e7148c5135518500ba81caece092c04a.tar.gz
samba-584044d5e7148c5135518500ba81caece092c04a.tar.bz2
samba-584044d5e7148c5135518500ba81caece092c04a.zip
r26444: Fix pidl tests.
(This used to be commit bc643f1014cef7f0bc66ad0edfa22395c69b8352)
Diffstat (limited to 'source4/pidl/tests/ndr_string.pl')
-rwxr-xr-xsource4/pidl/tests/ndr_string.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/pidl/tests/ndr_string.pl b/source4/pidl/tests/ndr_string.pl
index 834ef5a289..2f2d941665 100755
--- a/source4/pidl/tests/ndr_string.pl
+++ b/source4/pidl/tests/ndr_string.pl
@@ -14,7 +14,8 @@ test_samba4_ndr("string-pull-empty",
'
uint8_t data[] = { 0x00, 0x00, 0x00, 0x00 };
DATA_BLOB b = { data, 4 };
- struct ndr_pull *ndr = ndr_pull_init_blob(&b, NULL);
+ struct ndr_pull *ndr = ndr_pull_init_blob(&b, NULL,
+ smb_iconv_convenience_init(NULL, "ASCII", "UTF8", true));
struct TestString r;
r.in.data = NULL;
@@ -36,7 +37,8 @@ test_samba4_ndr("string-ascii-pull",
uint8_t data[] = { 0x03, 0x00, 0x00, 0x00,
\'f\', \'o\', \'o\', 0 };
DATA_BLOB b = { data, 8 };
- struct ndr_pull *ndr = ndr_pull_init_blob(&b, NULL);
+ struct ndr_pull *ndr = ndr_pull_init_blob(&b, NULL,
+ smb_iconv_convenience_init(NULL, "ASCII", "UTF8", true));
struct TestString r;
r.in.data = NULL;
@@ -64,7 +66,8 @@ test_samba4_ndr("string-out",
uint8_t data[] = { 0x03, 0x00, 0x00, 0x00,
\'f\', \'o\', \'o\', 0 };
DATA_BLOB b = { data, 8 };
- struct ndr_pull *ndr = ndr_pull_init_blob(&b, NULL);
+ struct ndr_pull *ndr = ndr_pull_init_blob(&b, NULL,
+ smb_iconv_convenience_init(NULL, "ASCII", "UTF8", true));
struct TestString r;
char *str = NULL;
r.out.data = &str;