Web lists-archives.com

Re: Invalid UTF-8 byte? (was: Re: utf)




Henrique de Moraes Holschuh:

Also, a text file MAY contain NULs (the character), it is just considered bad practice (nowadays?). Don't assume you won't see any. For example, received e-mail is *more* likely to have NULs in it than normal text due to the quality of some mail agents out there.

I suspect not as likely as anything that was in the process of being appended to on a not-fully-journalling filesystem when a dirty shutdown happens. (-:

* https://askubuntu.com/questions/356981/

Or anything that "rotates" output files by truncating them and pulls the rug out from underneath an old-style simplistic indefinitely-running text output writer.

* http://jdebp.eu./FGA/do-not-use-logrotate.html#Background