conf/88712: [UPDATE] freebsd-tips: Add "how to strip UTF-8 BOM"

chinsan chinsan.tw at gmail.com
Wed Nov 9 02:40:15 PST 2005


>Number:         88712
>Category:       conf
>Synopsis:       [UPDATE] freebsd-tips: Add "how to strip UTF-8 BOM"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 09 10:40:14 GMT 2005
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list