From owner-freebsd-questions@FreeBSD.ORG Tue Dec 2 00:18:25 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB67116A4CE for ; Tue, 2 Dec 2003 00:18:25 -0800 (PST) Received: from mail.caraldi.com (caraldi.com [62.212.102.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3496943FAF for ; Tue, 2 Dec 2003 00:18:22 -0800 (PST) (envelope-from jbq@caraldi.com) Received: from caraldi.com (watt.intra.caraldi.com [192.168.100.101]) by mail.caraldi.com (Postfix) with SMTP id AAA2921FA for ; Tue, 2 Dec 2003 09:18:20 +0100 (CET) Received: by caraldi.com (sSMTP sendmail emulation); Tue, 2 Dec 2003 09:18:20 +0100 Date: Tue, 2 Dec 2003 09:18:20 +0100 From: Jean-Baptiste Quenot To: questions@FreeBSD.org Message-ID: <20031202081818.GA1463@watt.intra.caraldi.com> Mail-Followup-To: questions@FreeBSD.org References: <20031202003105.GA11013@watt.intra.caraldi.com> <20031202052858.GA11469@falcon.midgard.homeip.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline In-Reply-To: <20031202052858.GA11469@falcon.midgard.homeip.net> User-Agent: Mutt/1.5.5.1i Subject: Re: Is non-breaking space a space? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2003 08:18:25 -0000 --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Erik Trulsson: > On Tue, Dec 02, 2003 at 01:31:07AM +0100, Jean-Baptiste Quenot wrote: > > > In /usr/src/share/mklocale, the file la_LN.ISO8859-1.src for example > > contains a SPACE definition that includes the non-breaking space. > > It seems that it is so since the beginning of FreeBSD, but is there > > some reference, some standard that states whether NBSP is considered > > a space or not? > > If you look at the locale definitions found at > http://www.dkuug.dk/JTC1/SC22/WG15 it would seem that NBSP should be > considered as a space character, but there might be some other > standard somewhere else that says differently. That's also my opinion. Let's explain the whole story: I'm reformatting my email messages with textproc/par, and I noticed since I'm using FreeBSD that all non-breaking spaces are converted to spaces during filtering, just because isspace(160) is true. Of course, if I put non-breaking spaces in my text, I'm not expecting the lines to be broken on them, and I don't want them to be filtered out, because nbsps make sense when used appropriately. After a while, I discovered that the issue is related to locales. And IMHO it makes sense not to consider nbsp as a space. Where shall I report the problem? Cheers, --=20 Jean-Baptiste Quenot http://caraldi.com/jbq/ --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/zErK9xx3BCMc9gsRAuruAJ42/ij62bd5hD1Xch6dbjjl/yKI8gCbBmYd wVq5XHBYDUx2A8Y6XIQmF8Y= =ATl5 -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q--