summaryrefslogtreecommitdiff
path: root/source4/lib/charset/iconv.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-08-20 15:52:08 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-08-20 15:52:08 +1000
commit4bfab3bedbf36979424e3d284e8bd67c8224d47b (patch)
tree35531e74f8349559ab534a50f0938aa6479379f1 /source4/lib/charset/iconv.c
parent6e5f2454acb6ad11e799faed834fb4937651737d (diff)
parentf96f623854d3cd8bdaacd25979618f1cb53b8f93 (diff)
downloadsamba-4bfab3bedbf36979424e3d284e8bd67c8224d47b.tar.gz
samba-4bfab3bedbf36979424e3d284e8bd67c8224d47b.tar.bz2
samba-4bfab3bedbf36979424e3d284e8bd67c8224d47b.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 9fa48b3572cb4e55cfaa48a8b516a91904048573)
Diffstat (limited to 'source4/lib/charset/iconv.c')
-rw-r--r--source4/lib/charset/iconv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/charset/iconv.c b/source4/lib/charset/iconv.c
index 4f4bc8fd2d..d4f930b462 100644
--- a/source4/lib/charset/iconv.c
+++ b/source4/lib/charset/iconv.c
@@ -469,6 +469,9 @@ static size_t iconv_copy(void *cd, const char **inbuf, size_t *inbytesleft,
return 0;
}
+/*
+ this takes a UTF8 sequence and produces a UTF16 sequence
+ */
static size_t utf8_pull(void *cd, const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft)
{
@@ -586,6 +589,10 @@ error:
return -1;
}
+
+/*
+ this takes a UTF16 sequence and produces a UTF8 sequence
+ */
static size_t utf8_push(void *cd, const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft)
{