From: Matthias Dieter Wallnöfer Date: Fri, 12 Sep 2008 16:36:04 +0000 (+0200) Subject: reg_ldb_unpack_value: Change "CH_UTF8" in "CH_UNIX" X-Git-Tag: samba-4.0.0alpha6~795 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=036b650ee4b4b32859c8ccfa797b20bbaa9a23e6;p=thirdparty%2Fsamba.git 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". --- diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index e4037b1d90c..18054ac89b6 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;