From chinsan@chinsan.twbbs.org  Wed Nov  9 10:34:17 2005
Return-Path: <chinsan@chinsan.twbbs.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1765A16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Nov 2005 10:34:17 +0000 (GMT)
	(envelope-from chinsan@chinsan.twbbs.org)
Received: from chinsan.twbbs.org (220-135-110-151.HINET-IP.hinet.net [220.135.110.151])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3570543D45
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Nov 2005 10:34:14 +0000 (GMT)
	(envelope-from chinsan@chinsan.twbbs.org)
Received: from chinsan.twbbs.org (localhost [127.0.0.1])
	by chinsan.twbbs.org (8.13.4/8.13.4) with ESMTP id jA9AYDsE004596
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 9 Nov 2005 18:34:14 +0800 (CST)
	(envelope-from chinsan@chinsan.twbbs.org)
Received: (from chinsan@localhost)
	by chinsan.twbbs.org (8.13.4/8.13.4/Submit) id jA9AYDmN004595;
	Wed, 9 Nov 2005 18:34:13 +0800 (CST)
	(envelope-from chinsan)
Message-Id: <200511091034.jA9AYDmN004595@chinsan.twbbs.org>
Date: Wed, 9 Nov 2005 18:34:13 +0800 (CST)
From: chinsan <chinsan.tw@gmail.com>
Reply-To: chinsan <chinsan.tw@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [UPDATE] freebsd-tips: Add "how to strip UTF-8 BOM"
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         88712
>Category:       conf
>Synopsis:       [patch] freebsd-tips: Add "how to strip UTF-8 BOM"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    chinsan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 09 10:40:14 GMT 2005
>Closed-Date:    Mon Oct 09 04:13:10 GMT 2006
>Last-Modified:  Mon Oct 09 04:13:10 GMT 2006
>Originator:     chinsan
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD chinsan.twbbs.org 6.0-STABLE FreeBSD 6.0-STABLE #3: Mon Nov 7 23:59:09 CST 2005 root@chinsan.twbbs.org:/usr/obj/usr/src/sys/TAKAKO i386

>Description:

Add "how to strip UTF-8 BOM"

>How-To-Repeat:
>Fix:

--- freebsd-tips begins here ---
--- /usr/src/games/fortune/datfiles/freebsd-tips.orig	Wed Nov  9 18:22:11 2005
+++ /usr/src/games/fortune/datfiles/freebsd-tips	Wed Nov  9 18:25:57 2005
@@ -500,3 +500,7 @@
 	man -t grep > grep.ps	# Save the PostScript version to a file
 or
 	man -t printf | lp	# Send the PostScript directly to printer
+%
+Want to strip UTF-8 BOM(Bye Order Mark) from given files?
+
+	sed -i -s -e '1s/^\xef\xbb\xbf//' < bomfile > newfile
--- freebsd-tips ends here ---


>Release-Note:
>Audit-Trail:

From: Pav Lucistnik <pav@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/88712: [patch] freebsd-tips: Add "how to strip UTF-8 BOM"
Date: Sun, 15 Jan 2006 17:48:18 +0100

 Typo? Byte Order Mark.
 
 Also, why -i flag, when you're not editing the file inplace?
 
 $ sed -i -s -e 's|a|b|' < foo > ooof
 sed: -i may not be used with stdin
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 Oh, no! Aaargh! It is the most unnatural, most disgusting
 creature imaginable: a two-eyed cyclops!

From: chinsan <chinsan.tw@gmail.com>
To: "Pav Lucistnik" <pav@freebsd.org>
Cc: FreeBSD-gnats-submit@freebsd.org, bug-followup@freebsd.org
Subject: Re: conf/88712: [UPDATE] freebsd-tips: Add "how to strip UTF-8 BOM"
Date: Sun, 24 Sep 2006 13:02:01 +0800

 Hi, pav:
 
 > Typo? Byte Order Mark.
 Oh, Sorry. It's a typo. :p
 
 >
 > Also, why -i flag, when you're not editing the file inplace?
 >
 > $ sed -i -s -e 's|a|b|' < foo > ooof
 > sed: -i may not be used with stdin
 Thanks for notice, the floowing is the modified patch:
 
   sed -e '1s/^\xef\xbb\xbf//' < bomfile > newfile
 
 Would you please take a review with it again?
 Thanks. :)
 
 - chinsan

From: Pav Lucistnik <pav@FreeBSD.org>
To: chinsan <chinsan.tw@gmail.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org, bug-followup@FreeBSD.org
Subject: Re: conf/88712: [UPDATE] freebsd-tips: Add "how to strip UTF-8 BOM"
Date: Sun, 24 Sep 2006 12:04:21 +0200

 > > Typo? Byte Order Mark.
 > Oh, Sorry. It's a typo. :p
 > 
 > >
 > > Also, why -i flag, when you're not editing the file inplace?
 > >
 > > $ sed -i -s -e 's|a|b|' < foo > ooof
 > > sed: -i may not be used with stdin
 > Thanks for notice, the floowing is the modified patch:
 > 
 >   sed -e '1s/^\xef\xbb\xbf//' < bomfile > newfile
 > 
 > Would you please take a review with it again?
 > Thanks. :)
 
 You're a committer now, you can handle the PR yourself now.
 I think it looks fine now.
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 Shop at the Mobius Strip Mall: Always on the same side of the street!

From: Pav Lucistnik <pav@FreeBSD.org>
To: chinsan <chinsan.tw@gmail.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org, bug-followup@FreeBSD.org
Subject: Re: conf/88712: [UPDATE] freebsd-tips: Add "how to strip UTF-8 BOM"
Date: Sun, 24 Sep 2006 12:04:21 +0200

 > > Typo? Byte Order Mark.
 > Oh, Sorry. It's a typo. :p
 > 
 > >
 > > Also, why -i flag, when you're not editing the file inplace?
 > >
 > > $ sed -i -s -e 's|a|b|' < foo > ooof
 > > sed: -i may not be used with stdin
 > Thanks for notice, the floowing is the modified patch:
 > 
 >   sed -e '1s/^\xef\xbb\xbf//' < bomfile > newfile
 > 
 > Would you please take a review with it again?
 > Thanks. :)
 
 You're a committer now, you can handle the PR yourself now.
 I think it looks fine now.
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 Shop at the Mobius Strip Mall: Always on the same side of the street!
Responsible-Changed-From-To: freebsd-bugs->chinsan 
Responsible-Changed-By: chinsan 
Responsible-Changed-When: Sun Sep 24 13:24:28 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88712 
State-Changed-From-To: open->closed 
State-Changed-By: chinsan 
State-Changed-When: Mon Oct 9 04:13:07 UTC 2006 
State-Changed-Why:  
Committed. Thank You. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88712 
>Unformatted:
