summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-23 09:14:39 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-24 10:46:12 +1000
commit9521cd0409add2628352ee5ef888c5a8a90fbb27 (patch)
treefd5fe74cd7052462902bd6ca52eb2bed2be4b122 /source3/libsmb
parent69e98ff86c4e90d2259b7a4ea93e45e2ec426bc3 (diff)
downloadsamba-9521cd0409add2628352ee5ef888c5a8a90fbb27.tar.gz
samba-9521cd0409add2628352ee5ef888c5a8a90fbb27.tar.bz2
samba-9521cd0409add2628352ee5ef888c5a8a90fbb27.zip
param: Make the 'unicode' parameter common
This parameter is most useful for interop testing, rather than production use. Andrew Bartlett
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index dcb8467339..88cb44da57 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -191,6 +191,9 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx,
if (getenv("CLI_FORCE_ASCII")) {
force_ascii = true;
}
+ if (!lp_unicode()) {
+ force_ascii = true;
+ }
if (flags & CLI_FULL_CONNECTION_FORCE_ASCII) {
force_ascii = true;
}