We include the byte ordering mark in some of our files and not in
others. Should we be consistent or should I just not be so picky?

From reading the Wikipedia page [1], it seems that some programs "cannot
interpret UTF-8 unless the BOM is present or the file contains only
ASCII". On the other hand, "Not using a BOM allows text to be
backwards-compatible with some software that is not Unicode-aware."

find ./ -type f -exec sh -c 'od -c {} | head -n 1 | grep -i "357 273
277" && echo {}' \;

./development/Win32/packaging/installer/lang/Encodings.txt
0000000 357 273 277   C   h   a   n   g   e   l   o   g       f   o   r
./development/Win32/packaging/installer/ChangeLog.txt
0000000 357 273 277   T   o       b   u   i   l   d       t   h   e    
./development/Win32/packaging/installer/Readme.txt
0000000 357 273 277   F   o   r       L   y   X       2   .   2   .   1
./lib/doc/Changelog-Customization-LyX_22x.txt
0000000 357 273 277   F   o   r       L   y   X       2   .   2   .   3
./lib/doc/Changelog-UserGuide-LyX_22x.txt
0000000 357 273 277   F   o   r       L   y   X       2   .   2   .   3
./lib/doc/Changelog-EmbeddedObjects-LyX_22x.txt
0000000 357 273 277   M   o   d   i   f   i   e   d   :  \n  \n   -    
./lib/doc/attic/Changelog-Tutorial-LyX_22x.txt

Scott

[1] https://en.wikipedia.org/wiki/Byte_order_mark

Attachment: signature.asc
Description: PGP signature

Reply via email to