git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0576875
)
added some comments at the request of a frustrated abartlet
author
Andrew Tridgell
<tridge@samba.org>
Tue, 19 Aug 2008 07:49:34 +0000
(17:49 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 19 Aug 2008 07:49:34 +0000
(17:49 +1000)
source/lib/charset/iconv.c
patch
|
blob
|
history
diff --git
a/source/lib/charset/iconv.c
b/source/lib/charset/iconv.c
index 4f4bc8fd2da70c9f9d5bb75b2ee0f946516c996a..d4f930b4622dc8893d4f58acd6a743374d5caf9d 100644
(file)
--- a/
source/lib/charset/iconv.c
+++ b/
source/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)
{