summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-01-27 01:09:21 +0000
committerJeremy Allison <jra@samba.org>2000-01-27 01:09:21 +0000
commit451dcb3351461f52fee619e0d8a1b04d31725181 (patch)
tree2bb1c034180e592b82308df4e2ad66aaed62e90f /source3/client
parentace4006c9f7ac16b3c09b1b2222f607bccfa040e (diff)
downloadsamba-451dcb3351461f52fee619e0d8a1b04d31725181.tar.gz
samba-451dcb3351461f52fee619e0d8a1b04d31725181.tar.bz2
samba-451dcb3351461f52fee619e0d8a1b04d31725181.zip
Fixed code page conversions of messages outgoing/incoming.
Jeremy. (This used to be commit 84b045cbc8b337f1e23f200af433ac9d265a22d4)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 050313bd86..6beff70c9b 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -190,6 +190,13 @@ static void send_message(void)
msg[l] = c;
}
+ /*
+ * The message is in UNIX codepage format. Convert to
+ * DOS before sending.
+ */
+
+ unix_to_dos(msg, True);
+
if (!cli_message_text(cli, msg, l, grp_id)) {
printf("SMBsendtxt failed (%s)\n",cli_errstr(cli));
return;