diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-03-30 17:49:30 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-03-30 13:02:47 +0200 |
commit | 43e364e61bc232e167ed1a18de037f8a278c8c24 (patch) | |
tree | d2f29637bc267f3b07dccfd4bfbdc78cdb4c40c2 /lib/util/charset/codepoints.c | |
parent | a64958a8805b6ef1758293697e63309d3ddbe4ae (diff) | |
download | samba-43e364e61bc232e167ed1a18de037f8a278c8c24.tar.gz samba-43e364e61bc232e167ed1a18de037f8a278c8c24.tar.bz2 samba-43e364e61bc232e167ed1a18de037f8a278c8c24.zip |
lib/util/charset Add tests for convert_string_talloc_handle()
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Mar 30 13:02:47 CEST 2011 on sn-devel-104
Diffstat (limited to 'lib/util/charset/codepoints.c')
-rw-r--r-- | lib/util/charset/codepoints.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/util/charset/codepoints.c b/lib/util/charset/codepoints.c index 91c44b8636..cd54420e8e 100644 --- a/lib/util/charset/codepoints.c +++ b/lib/util/charset/codepoints.c @@ -172,6 +172,15 @@ struct smb_iconv_handle *get_iconv_handle(void) return global_iconv_handle; } +struct smb_iconv_handle *get_iconv_testing_handle(TALLOC_CTX *mem_ctx, + const char *dos_charset, + const char *unix_charset, + const char *display_charset) +{ + return smb_iconv_handle_reinit(mem_ctx, + dos_charset, unix_charset, display_charset, true, NULL); +} + /** * Return the name of a charset to give to iconv(). **/ |