🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69131

Re: UTF-8 wildmats in INN

#69131
From: Russ Allbery
Date: Mon, 17 May 2004 07:24
18 lines
2030 bytes
Russ Allbery <rra@stanford.edu> writes:

> The alternate approach that may not require a lot of code restructuring
> that comes to mind for me is modifying * to skip complete UTF-8
> characters iff the octet sequence is a valid UTF-8 character, otherwise
> skipping octets.  In other words, modify * so that it will only match
> all of \303\206 or none of it, but will never match \303 in isolation
> provided that the octets to make a complete UTF-8 character are
> available following it in the string.

I've taken this approach and it appears to work correctly.  The new code
has been committed to CVS.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <871xljldnv.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!199.184.165.232!feed1.news.rcn.net!rcn!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <slrnc6ehe7.25bv.andrew+nonews@trinity.supernews.net> <87n060y54c.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <871xljldnv.fsf@windlord.stanford.edu>
Subject: Re: UTF-8 wildmats in INN
Date: Mon, 17 May 2004 00:24:04 -0700
From: Russ Allbery <rra@stanford.edu>
References: <slrnc6ehe7.25bv.andrew+nonews@trinity.supernews.net> <87n060y54c.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!199.184.165.232!feed1.news.rcn.net!rcn!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 18
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1084778644 9544 171.64.19.147 (17 May 2004 07:24:04
 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through
 Obscurity, linux)
Cancel-Lock: sha1:K2I18W52qMFEuLSrSd5qwazPNxc=