Change log-tailer to properly track multi-byte characters.
Change log-tailer to properly track multi-byte characters.

When end-of-line is represented within a file as "\r\n",
it is represented in memory as a single "\n".  This patch eliminates
the discrepancy between size on disk and size in memory.

Signed-off-by: José Valim <0c2436ea76ed86e37cc05f66dea18d48ef390882@gmail.com>

brchristian/rails,pschambacher/rails,georgeclaghorn/rails,esparta/rails,brchristian/rails,rbhitchcock/rails,mtsmfm/rails,lucasmazza/rails,schuetzm/rails,starknx/rails,flanger001/rails,ledestin/rails,alecspopa/rails,BlakeWilliams/rails,shioyama/rails,iainbeeston/rails,gauravtiwari/rails,hanystudy/rails,gfvcastro/rails,samphilipd/rails,rossta/rails,printercu/rails,betesh/rails,yawboakye/rails,mechanicles/rails,gauravtiwari/rails,mohitnatoo/rails,alecspopa/rails,jeremy/rails,ledestin/rails,rafaelfranca/omg-rails,Edouard-chin/rails,illacceptanything/illacceptanything,gavingmiller/rails,deraru/rails,elfassy/rails,richseviora/rails,palkan/rails,kddeisz/rails,utilum/rails,Erol/rails,voray/rails,aditya-kapoor/rails,aditya-kapoor/rails,vipulnsward/rails,starknx/rails,fabianoleittes/rails,notapatch/rails,ngpestelos/rails,Envek/rails,mathieujobin/reduced-rails-for-travis,Erol/rails,betesh/rails,gavingmiller/rails,kirs/rails-1,assain/rails,kirs/rails-1,Vasfed/rails,Sen-Zhang/rails,felipecvo/rails,flanger001/rails,tjschuck/rails,matrinox/rails,kenta-s/rails,rails/rails,kamipo/rails,amoody2108/TechForJustice,maicher/rails,ngpestelos/rails,alecspopa/rails,notapatch/rails,mathieujobin/reduced-rails-for-travis,pschambacher/rails,maicher/rails,Edouard-chin/rails,utilum/rails,richseviora/rails,printercu/rails,EmmaB/rails-1,bogdanvlviv/rails,kachick/rails,coreyward/rails,untidy-hair/rails,prathamesh-sonpatki/rails,mtsmfm/railstest,Edouard-chin/rails,kachick/rails,notapatch/rails,kaspth/rails,deraru/rails,jeremy/rails,tgxworld/rails,gfvcastro/rails,MichaelSp/rails,flanger001/rails,kddeisz/rails,arunagw/rails,arjes/rails,MichaelSp/rails,Stellenticket/rails,tgxworld/rails,vassilevsky/rails,bogdanvlviv/rails,jeremy/rails,mohitnatoo/rails,shioyama/rails,yawboakye/rails,yawboakye/rails,Vasfed/rails,travisofthenorth/rails,gcourtemanche/rails,Spin42/rails,kmcphillips/rails,lcreid/rails,bradleypriest/rails,jeremy/rails,bogdanvlviv/rails,yasslab/railsguides.jp,richseviora/rails,Erol/rails,stefanmb/rails,iainbeeston/rails,MSP-Greg/rails,sealocal/rails,kddeisz/rails,esparta/rails,gauravtiwari/rails,illacceptanything/illacceptanything,mtsmfm/rails,EmmaB/rails-1,Stellenticket/rails,kmayer/rails,illacceptanything/illacceptanything,pvalena/rails,shioyama/rails,BlakeWilliams/rails,schuetzm/rails,marklocklear/rails,mechanicles/rails,mtsmfm/railstest,Envek/rails,stefanmb/rails,gfvcastro/rails,prathamesh-sonpatki/rails,marklocklear/rails,aditya-kapoor/rails,fabianoleittes/rails,yhirano55/rails,ttanimichi/rails,pvalena/rails,BlakeWilliams/rails,yalab/rails,kachick/rails,yawboakye/rails,yasslab/railsguides.jp,amoody2108/TechForJustice,felipecvo/rails,illacceptanything/illacceptanything,eileencodes/rails,coreyward/rails,georgeclaghorn/rails,printercu/rails,prathamesh-sonpatki/rails,iainbeeston/rails,ledestin/rails,illacceptanything/illacceptanything,bolek/rails,marklocklear/rails,joonyou/rails,iainbeeston/rails,ngpestelos/rails,Sen-Zhang/rails,eileencodes/rails,kirs/rails-1,kddeisz/rails,repinel/rails,rails/rails,yalab/rails,printercu/rails,lcreid/rails,yasslab/railsguides.jp,prathamesh-sonpatki/rails,eileencodes/rails,palkan/rails,mohitnatoo/rails,pschambacher/rails,kmayer/rails,mijoharas/rails,yhirano55/rails,tijwelch/rails,joonyou/rails,untidy-hair/rails,kmayer/rails,starknx/rails,matrinox/rails,voray/rails,odedniv/rails,yhirano55/rails,mtsmfm/railstest,utilum/rails,assain/rails,koic/rails,fabianoleittes/rails,sealocal/rails,ttanimichi/rails,betesh/rails,brchristian/rails,tgxworld/rails,tjschuck/rails,amoody2108/TechForJustice,travisofthenorth/rails,mijoharas/rails,rails/rails,pvalena/rails,Envek/rails,illacceptanything/illacceptanything,riseshia/railsguides.kr,rossta/rails,esparta/rails,coreyward/rails,rossta/rails,palkan/rails,lucasmazza/rails,kenta-s/rails,samphilipd/rails,repinel/rails,joonyou/rails,riseshia/railsguides.kr,mohitnatoo/rails,88rabbit/newRails,yahonda/rails,baerjam/rails,shioyama/rails,esparta/rails,tgxworld/rails,mathieujobin/reduced-rails-for-travis,matrinox/rails,mtsmfm/rails,Spin42/rails,riseshia/railsguides.kr,MSP-Greg/rails,kaspth/rails,georgeclaghorn/rails,kmcphillips/rails,kmcphillips/rails,elfassy/rails,arunagw/rails,xlymian/rails,xlymian/rails,sergey-alekseev/rails,assain/rails,yasslab/railsguides.jp,kenta-s/rails,koic/rails,illacceptanything/illacceptanything,travisofthenorth/rails,arjes/rails,samphilipd/rails,rbhitchcock/rails,untidy-hair/rails,Erol/rails,eileencodes/rails,rbhitchcock/rails,illacceptanything/illacceptanything,Stellenticket/rails,illacceptanything/illacceptanything,stefanmb/rails,yalab/rails,arunagw/rails,repinel/rails,gfvcastro/rails,joonyou/rails,untidy-hair/rails,vipulnsward/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,88rabbit/newRails,gavingmiller/rails,assain/rails,vassilevsky/rails,odedniv/rails,kamipo/rails,lcreid/rails,bogdanvlviv/rails,Envek/rails,mechanicles/rails,mechanicles/rails,tjschuck/rails,Sen-Zhang/rails,hanystudy/rails,aditya-kapoor/rails,pvalena/rails,palkan/rails,georgeclaghorn/rails,sergey-alekseev/rails,Stellenticket/rails,tijwelch/rails,rails/rails,yhirano55/rails,bolek/rails,kaspth/rails,yahonda/rails,baerjam/rails,riseshia/railsguides.kr,kmcphillips/rails,deraru/rails,schuetzm/rails,repinel/rails,sergey-alekseev/rails,travisofthenorth/rails,EmmaB/rails-1,illacceptanything/illacceptanything,flanger001/rails,notapatch/rails,ttanimichi/rails,maicher/rails,illacceptanything/illacceptanything,yalab/rails,rafaelfranca/omg-rails,schuetzm/rails,fabianoleittes/rails,hanystudy/rails,arjes/rails,vipulnsward/rails,arunagw/rails,mijoharas/rails,koic/rails,Vasfed/rails,deraru/rails,yahonda/rails,baerjam/rails,illacceptanything/illacceptanything,MSP-Greg/rails,felipecvo/rails,bradleypriest/rails,xlymian/rails,lucasmazza/rails,MSP-Greg/rails,odedniv/rails,baerjam/rails,Vasfed/rails,lcreid/rails,bolek/rails,BlakeWilliams/rails,MichaelSp/rails,Spin42/rails,voray/rails,kamipo/rails,betesh/rails,vipulnsward/rails,utilum/rails,illacceptanything/illacceptanything,88rabbit/newRails,gcourtemanche/rails,rafaelfranca/omg-rails,gcourtemanche/rails,bradleypriest/rails,yahonda/rails,tijwelch/rails,elfassy/rails,tjschuck/rails,sealocal/rails,Edouard-chin/rails,vassilevsky/rails