freebsd-ports/textproc/bomstrip/pkg-descr
Peter Pentchev f05c384708 Add the bomstrip port - strip the UTF-8 BOM bytes from text files,
implemented in many programming languages.  The port uses my patchset
which adds three new implementations, some build infrastructure,
a manual page and a couple of other fixes.

Author:	Mechiel Lukkien <mechiel@xs4all.nl>
WWW:	http://www.xs4all.nl/~mechiel/projects/bomstrip/
2008-06-14 11:06:20 +00:00

20 lines
1,008 B
Text

Bomstrip is a very simple tool that removes BOM's (byte-order-marks)
from utf-8 files. Actually, it is a set of tools that all do the same
thing, but - for added entertainment value - in multiple programming
languages (python, c, java, brainfuck, ook!, perl, sed, postscript,
pascal, unlambda, limbo, haskell, ocaml, php, ruby). You want to always
have this tool within hand-reach, no matter where you are and which
compilers/interpreters you keep close to you.
Each tool reads from stdin and writes to stdout. It accepts no options
or arguments. It never writes into files directly. All files are public
domain. It exists for the purpose of noting how stupid BOM's in utf-8
files are.
Oh, in case you didn't know yet: utf-8 does not have byte-ordering
issues, so there is absolutely no need to have three bytes (the
utf-8-BOM) that do not say anything about the byte-order (since there
is nothing to say).
Author: Mechiel Lukkien <mechiel@xs4all.nl>
WWW: http://www.xs4all.nl/~mechiel/projects/bomstrip/