summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-03 17:58:04 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:47:37 +0100
commitcb7c72a0ef9a8e6d145ead6286e54ec50ddf3988 (patch)
tree00f01ed22b54dc83f87031e9f25a71f3cd12dc69
parent6f1efbba065e0f0c9eaaa4a3c8c40ecfa1277107 (diff)
downloadsamba-cb7c72a0ef9a8e6d145ead6286e54ec50ddf3988.tar.gz
samba-cb7c72a0ef9a8e6d145ead6286e54ec50ddf3988.tar.bz2
samba-cb7c72a0ef9a8e6d145ead6286e54ec50ddf3988.zip
r26263: Don't assume CH_UNIX is CH_UTF8.
(This used to be commit 69157be9b180e4d82a66257afb5f774ef16cea89)
-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 fdd4c27599..6ce422049b 100644
--- a/source4/lib/registry/ldb.c
+++ b/source4/lib/registry/ldb.c
@@ -85,7 +85,7 @@ static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx,
switch (type) {
case REG_SZ:
case REG_EXPAND_SZ:
- val.length = convert_string_talloc(mem_ctx, CH_UTF16, CH_UTF8,
+ val.length = convert_string_talloc(mem_ctx, CH_UTF16, CH_UNIX,
(void *)data.data,
data.length,
(void **)&val.data);