From owner-freebsd-questions@FreeBSD.ORG Mon Jun 29 05:57:13 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 757A11065672 for ; Mon, 29 Jun 2009 05:57:13 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id E943E8FC13 for ; Mon, 29 Jun 2009 05:57:12 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n5T5usS0016745; Mon, 29 Jun 2009 06:57:06 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n5T5usS0016745 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1246255026; bh=hEh5W6Wf2lRBgbGcGe1H20x99RRm7hfLictD4piKv68=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4A4857A0.6040809@infracaninophile.co.uk>|Date:=20M on,=2029=20Jun=202009=2006:56:48=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.22=20(X11/20090625)|MIME-Vers ion:=201.0|To:=20"Aryeh=20M.=20Friedman"=20|CC:=20Glen=20Barber=20,=20freebsd-que stions@freebsd.org|Subject:=20Re:=20what=20character=20is=20a=20ph ysical=20newline|References:=20<4A48252C.1090808@gmail.com>=09<4ad 871310906281926i54fdac53u1d4681c8060e4d36@mail.gmail.com>=20<4A482 6A5.6020506@gmail.com>|In-Reply-To:=20<4A4826A5.6020506@gmail.com> |X-Enigmail-Version:=200.95.6|Content-Type:=20multipart/signed=3B= 20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/pgp-signa ture"=3B=0D=0A=20boundary=3D"------------enig659A101F2CBC873A79D19 E08"; b=XOT0z+sGTUuBe51y+0rlKOfOPsWhsuDnMvnMxU4Rq8+bt0cMnWvrfCk/Alw1H20Qx tU70BrAMw9OgVNm1013faGZMdDcK9VNyE3sFlSwxTYMW7qH1L3gtkAcUn38L1SvcwG 74eAKPvxRg7auF8rGsO77R5DGIsv7m5vCeY6dYsk= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4A4857A0.6040809@infracaninophile.co.uk> Date: Mon, 29 Jun 2009 06:56:48 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: "Aryeh M. Friedman" References: <4A48252C.1090808@gmail.com> <4ad871310906281926i54fdac53u1d4681c8060e4d36@mail.gmail.com> <4A4826A5.6020506@gmail.com> In-Reply-To: <4A4826A5.6020506@gmail.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig659A101F2CBC873A79D19E08" X-Virus-Scanned: clamav-milter 0.95.2 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: Glen Barber , freebsd-questions@freebsd.org Subject: Re: what character is a physical newline X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2009 05:57:13 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig659A101F2CBC873A79D19E08 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Aryeh M. Friedman wrote: > Glen Barber wrote: >> On Sun, Jun 28, 2009 at 10:21 PM, Aryeh M. >> Friedman wrote: >> =20 >>> I am writting a parser (tokenizes all characters among other things) = and >>> need to know what control char is equivelent to a newline (I do not n= eed >>> windows cross compatibility) >>> =20 >> >> What do you mean exactly? What language(s)? If I understand your >> question correctly, the C / C++ / Java / PHP (and I think Perl) >> 'newline' character is '\n' >> >> =20 > I meant what ascii character does \n actual correspond to (I assume =20 > but just making sure) On Unix, the end of line character is NL (012 octal, 10 decimal, 0x0a hex= ) -- see ascii(7). Some people know it as Ctrl-J Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig659A101F2CBC873A79D19E08 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkpIV6YACgkQ8Mjk52CukIxEbgCggdd3d2f9m/iBk+p5bP0q1sAs NdAAoIzAXCkI1UjsooAs1kEw6UCffoDt =2nYc -----END PGP SIGNATURE----- --------------enig659A101F2CBC873A79D19E08--