git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1938cb1
)
reg_ldb_unpack_value: Change "CH_UTF8" in "CH_UNIX"
author
Matthias Dieter Wallnöfer
<mwallnoefer@yahoo.de>
Fri, 12 Sep 2008 16:36:04 +0000
(18:36 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Tue, 21 Oct 2008 12:40:40 +0000
(14:40 +0200)
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".
source4/lib/registry/ldb.c
patch
|
blob
|
history
diff --git
a/source4/lib/registry/ldb.c
b/source4/lib/registry/ldb.c
index e4037b1d90c2484e0d79d0eb7ad39e67496f736e..18054ac89b6cd19f39c4fe7351927f26923c798e 100644
(file)
--- 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_U
TF8
, CH_UTF16,
+ data->length = convert_string_talloc(mem_ctx, iconv_convenience, CH_U
NIX
, CH_UTF16,
val->data, val->length,
(void **)&data->data);
break;