From b85d1ecc2661cd2db8e7992dc2aa587a24392bb1 Mon Sep 17 00:00:00 2001 From: David O'Neill Date: Tue, 16 Jan 2001 18:17:55 +0000 Subject: Changes from APPLIANCE_HEAD: source/param/loadparm.c - changed lp_add_printer() to convert szPrintername and comment from unix to DOS codepage. (This used to be commit 6a1f55b3255f216a5ddc73f94c6cb5a2490c3bbb) --- source3/param/loadparm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 9a6f5e946d..57e8f17189 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1834,7 +1834,9 @@ BOOL lp_add_printer(char *pszPrintername, int iDefaultService) /* the printer name is set to the service name. */ string_set(&iSERVICE(i).szPrintername, pszPrintername); + unix_to_dos(iSERVICE(i).szPrintername, True); string_set(&iSERVICE(i).comment, comment); + unix_to_dos(iSERVICE(i).comment, True); iSERVICE(i).bBrowseable = sDefault.bBrowseable; /* Printers cannot be read_only. */ iSERVICE(i).bRead_only = False; -- cgit