From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15499 invoked by alias); 28 May 2007 20:33:04 -0000 Received: (qmail 15491 invoked by uid 22791); 28 May 2007 20:33:04 -0000 X-Spam-Check-By: sourceware.org Received: from elasmtp-kukur.atl.sa.earthlink.net (HELO elasmtp-kukur.atl.sa.earthlink.net) (209.86.89.65) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 28 May 2007 20:33:02 +0000 Received: from [76.167.219.232] (helo=PAULD) by elasmtp-kukur.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1Hsltk-00063X-He for ecos-discuss@ecos.sourceware.org; Mon, 28 May 2007 16:33:00 -0400 From: "Paul D. DeRocco" To: Date: Tue, 29 May 2007 04:50:00 -0000 Message-ID: <005601c7a167$6192c2e0$887ba8c0@PAULD> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook, Build 10.0.6822 In-Reply-To: <20070528202121.GA9801@ubuntu> X-ELNK-Trace: bd7d5d4e6f8f652c74cfc7ce3b1ad11381c87f5e51960688b92bce5fadc442abfe0dcb73d3e6facf350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: RE: [ECOS] Re: diag_printf refuses to print ANSI escape sequences? X-SW-Source: 2007-05/txt/msg00148.txt.bz2 > From: Sergei Gavrikov [mailto:w3sg@SoftHome.net]=20 >=20 > It seems, that isn't good idea to turn off string checking at=20 > all in the diagnostic function. LF, CR, BS and TAB are the=20 > essentials of the text formating. So, those chars are there.=20 > The '\b' quite could produce a bold printing, in past, for=20 > example :-) Sometimes, it needs to expand TAB to spaces and=20 > etc. Other non-printed characters are optional things. This=20 > is just _my_ opinion. I think that minimalist set ('\n',=20 > '\r', '\b', '\t') was the enough set for the diag_print() application. Fine, that's what CDL items are for. It seems odd, though, that diag_printf would make such checks, while printf doesn't. Furthermore, it seems less odd that it would make such a check on an argument string substituted for %s, than on the format string itself, the latter almost always being a literal string passed directly to the function by the caller. Anyway, I don't have a dog in this fight. I was just musing that a CDL option to take out the checking seemed more sensible than a CDL option to add yet another check to it. --=20 Ciao, Paul D. DeRocco Paul mailto:pderocco@ix.netcom.com=20 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss