🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #238228

Re:  John E. Davis, slrn posts: “ Re: Re: U-FeFF ”.

#238228
From: John E. Davis
Date: Tue, 17 Nov 2009 17:07
49 lines
3496 bytes
On Tue, 17 Nov 2009 06:40:42 +0000 (UTC), _@Jeff_Relf.Seattle.inValid <_@Jeff_Relf.Seattle.inValid>
wrote:
> Your “Subject:” line is shown here:
>   http://Google.COM/group/alt.free.newsservers/msg/2fcb5466c0e936f5?dmode=source
>
> slrn doesn't think U-FeFF is white·space;
> so, when it strips leading white·space, it leaves it in.

>From what I understand, the primary use of U+FEFF is as a byte-order
mark at the beginning of a byte-stream (e.g., a file) to indicate the
endianness of the stream.  While UTF-8 needs no such indicater, it is
sometimes used at the beginning of the stream to indicate that Unicode
is used.  It is unclear what to do with the character when it occurs
in the middle of a stream, such as is the case we are discussing here.
In this case, slrn simply passes it along.

> ( <Windows.H>'s GetStringTypeW() tells me what's white·space or not )

S-Lang makes use of the Unicode tables from unicode.org for
determining what is whitespace.  In particular, this table is used:
<http://www.unicode.org/Public/5.2.0/ucd/UnicodeData.txt>
It is described here:
<http://www.unicode.org/reports/tr44/tr44-4.html>

The entry for U+FEFF is:

  FEFF;ZERO WIDTH NO-BREAK SPACE;Cf;0;BN;;;;;N;BYTE ORDER MARK;;;;

The relevant field value here is the third one, "Cf", which means that
the character is a "format control character".  Contrast this with the
entry for U+0020, which is the ASCII space character:

  0020;SPACE;Zs;0;WS;;;;;N;;;;;

The value of the third field is "Zs", which is "a space character (of
various non-zero widths)".  It is for this reason that slang does not
treat U+FEFF as whitespace.  This also seems to be consistent with
java, according to:

  <http://www.fileformat.info/info/unicode/char/feff/index.htm>

The character is also not listed as Unicode whitespace here:
<http://en.wikipedia.org/wiki/Whitespace_(computer_science)>

With that said, I cannot help but to wonder what purpose this
character is serving in the middle of the Subject header.

Thanks,
--John
Technical Details
Message-ID: <slrnhg5m3b.6ij.jed@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!bloom-beacon.mit.edu!micro-heart-of-gold.mit.edu!not-for-mail
References: <_@Jeff_Relf.Seattle.2009_Nov16.7.09pm.SZ> <hdt83l$fhb$2@tioat.net> <_@Jeff_Relf.Seattle.2009_Nov16.8.34pm.y9> <hdta8r$i2q$1@tioat.net> <_@Jeff_Relf.Seattle.2009_Nov16.9.24pm.oh> <hdtds7$kg5$1@tioat.net> <_@Jeff_Relf.Seattle.2009_Nov16.10.43pm.BQ>

Show Full Headers
Complete Article Headers
Message-ID: <slrnhg5m3b.6ij.jed@aluche.mit.edu>
Subject: Re:  John E. Davis, slrn posts: “ Re: Re: U-FeFF ”.
Date: Tue, 17 Nov 2009 17:07:55 +0000
From: "John E. Davis" <jed@jedsoft.org>
References: <_@Jeff_Relf.Seattle.2009_Nov16.7.09pm.SZ> <hdt83l$fhb$2@tioat.net> <_@Jeff_Relf.Seattle.2009_Nov16.8.34pm.y9> <hdta8r$i2q$1@tioat.net> <_@Jeff_Relf.Seattle.2009_Nov16.9.24pm.oh> <hdtds7$kg5$1@tioat.net> <_@Jeff_Relf.Seattle.2009_Nov16.10.43pm.BQ>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!bloom-beacon.mit.edu!micro-heart-of-gold.mit.edu!not-for-mail
Newsgroups: news.software.readers
Organization: MIT EECS ECF
Lines: 49
Reply-To: davis@space.mit.edu
NNTP-Posting-Host: aluche.mit.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: micro-heart-of-gold.mit.edu 1258477675 28428 18.75.2.45 (17 Nov 2009
X-Complaints-To: usenet@micro-heart-of-gold.mit.edu
NNTP-Posting-Date: Tue, 17 Nov 2009 17:07:55 +0000 (UTC)
User-Agent: slrn/pre1.0.0-17 (Linux)
X-Original-Bytes: 3242