summaryrefslogtreecommitdiffstats
path: root/source/lib/charcnv.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
commite236a3e29e4af24b20ec6af357ce67abf82b4528 (patch)
treeae6019f45f060b9f365efe963734cec802cf048f /source/lib/charcnv.c
parent7cb517329b0fa2dec427a890a985c75cd467a3b0 (diff)
downloadsamba-e236a3e29e4af24b20ec6af357ce67abf82b4528.tar.gz
samba-e236a3e29e4af24b20ec6af357ce67abf82b4528.tar.xz
samba-e236a3e29e4af24b20ec6af357ce67abf82b4528.zip
switch from UCS2 to UCS-2LE
Diffstat (limited to 'source/lib/charcnv.c')
-rw-r--r--source/lib/charcnv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/lib/charcnv.c b/source/lib/charcnv.c
index b96c960ec12..6c7646673d8 100644
--- a/source/lib/charcnv.c
+++ b/source/lib/charcnv.c
@@ -32,7 +32,6 @@ static smb_iconv_t
dos_to_unix=(smb_iconv_t)-1, /*unix format <-> dos codepage*/
unix_to_dos=(smb_iconv_t)-1; /*for those clients who does not support unicode*/
-
/****************************************************************************
Initialize iconv conversion descriptors
****************************************************************************/
@@ -47,8 +46,8 @@ void init_iconv(char *unix_charset, char *dos_charset)
if (!unix_charset || !*unix_charset) unix_charset = "ASCII";
if (!dos_charset || !*dos_charset) dos_charset = "ASCII";
- ICONV(ucs2_to_unix, "UCS2", unix_charset)
- ICONV(unix_to_ucs2, unix_charset, "UCS2")
+ ICONV(ucs2_to_unix, "UCS-2LE", unix_charset)
+ ICONV(unix_to_ucs2, unix_charset, "UCS-2LE")
ICONV(dos_to_unix, dos_charset, unix_charset)
ICONV(unix_to_dos, unix_charset, dos_charset)