summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2008-09-12 18:36:04 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-21 14:40:40 +0200
commit036b650ee4b4b32859c8ccfa797b20bbaa9a23e6 (patch)
tree06383362e410df63c7080e9dcc9dff056d978746
parent1938cb1e834499aa6e6c8290861dbd233184156a (diff)
downloadsamba-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".
-rw-r--r--source4/lib/registry/ldb.c2
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;