summaryrefslogtreecommitdiffstats
path: root/source/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
commit84b045cbc8b337f1e23f200af433ac9d265a22d4 (patch)
treeadaf6e092a80449312c1fa426803cf8e9579eeaf /source/client
parentb62a1bd6328f5894ae1a2fef3ef6fc66304ade52 (diff)
downloadsamba-84b045cbc8b337f1e23f200af433ac9d265a22d4.tar.gz
samba-84b045cbc8b337f1e23f200af433ac9d265a22d4.tar.xz
samba-84b045cbc8b337f1e23f200af433ac9d265a22d4.zip
Fixed code page conversions of messages outgoing/incoming.
Jeremy.
Diffstat (limited to 'source/client')
-rw-r--r--source/client/client.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 050313bd868..6beff70c9bc 100644
--- a/source/client/client.c
+++ b/source/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;