summaryrefslogtreecommitdiff
path: root/source3/lib/iconv.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-07-22 00:27:30 +0000
committerAndrew Tridgell <tridge@samba.org>2001-07-22 00:27:30 +0000
commit512351db92b4e13c2944f740090ec58730d8fa06 (patch)
treed3a67c805f1c99ea6e6bb3a2de259d2cecfe845e /source3/lib/iconv.c
parent9cbe6e8166b3397add8c124c867e7848963c4b80 (diff)
downloadsamba-512351db92b4e13c2944f740090ec58730d8fa06.tar.gz
samba-512351db92b4e13c2944f740090ec58730d8fa06.tar.bz2
samba-512351db92b4e13c2944f740090ec58730d8fa06.zip
switch from UCS2 to UCS-2LE
(This used to be commit e236a3e29e4af24b20ec6af357ce67abf82b4528)
Diffstat (limited to 'source3/lib/iconv.c')
-rw-r--r--source3/lib/iconv.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/source3/lib/iconv.c b/source3/lib/iconv.c
index e0988dc46a..b73ff6ff39 100644
--- a/source3/lib/iconv.c
+++ b/source3/lib/iconv.c
@@ -40,7 +40,7 @@ static struct {
size_t (*push)(char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft);
} charsets[] = {
- {"UCS2", iconv_copy, iconv_copy},
+ {"UCS-2LE", iconv_copy, iconv_copy},
{"UTF8", utf8_pull, utf8_push},
{"ASCII", ascii_pull, ascii_push},
{"WEIRD", weird_pull, weird_push},
@@ -63,22 +63,8 @@ size_t smb_iconv(smb_iconv_t cd,
#ifdef HAVE_NATIVE_ICONV
if (cd->cd) {
size_t ret;
-#if 0
- char *p = *outbuf;
- char *q = *inbuf;
- int inlen=*inbytesleft, outlen=*outbytesleft;
-#endif
-
ret = iconv(cd->cd, inbuf, inbytesleft, outbuf, outbytesleft);
-#if 0
- if (strstr(p, "foo") || strstr(q, "foo")) {
- DEBUG(0,("Foo 2!\n"));
- dump_data(0, p, outlen - *outbytesleft);
- dump_data(0, q, inlen - *inbytesleft);
- }
-#endif
-
/* if there was an error then reset the internal state,
this ensures that we don't have a shift state remaining for
character sets like SJIS */