diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2008-09-12 18:36:04 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-10-21 14:40:40 +0200 |
commit | 036b650ee4b4b32859c8ccfa797b20bbaa9a23e6 (patch) | |
tree | 06383362e410df63c7080e9dcc9dff056d978746 /source4/lib/registry | |
parent | 1938cb1e834499aa6e6c8290861dbd233184156a (diff) | |
download | samba-036b650ee4b4b32859c8ccfa797b20bbaa9a23e6.tar.gz samba-036b650ee4b4b32859c8ccfa797b20bbaa9a23e6.tar.bz2 samba-036b650ee4b4b32859c8ccfa797b20bbaa9a23e6.zip |
reg_ldb_unpack_value: Change "CH_UTF8" in "CH_UNIX"
It's better to use "CH_UNIX" for unpacking, because the system charset doesn't have to be UTF8 and we should be compatible with "reg_ldb_pack_value".
Diffstat (limited to 'source4/lib/registry')
-rw-r--r-- | source4/lib/registry/ldb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index e4037b1d90..18054ac89b 100644 --- a/source4/lib/registry/ldb.c +++ b/source4/lib/registry/ldb.c @@ -59,7 +59,7 @@ static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx, { case REG_SZ: case REG_EXPAND_SZ: - data->length = convert_string_talloc(mem_ctx, iconv_convenience, CH_UTF8, CH_UTF16, + data->length = convert_string_talloc(mem_ctx, iconv_convenience, CH_UNIX, CH_UTF16, val->data, val->length, (void **)&data->data); break; |