[Okular-devel] Review Request 109119: Txt backend: detect encoding by chunks

Albert Astals Cid aacid at kde.org
Sun Feb 24 21:56:19 UTC 2013



> On Feb. 23, 2013, 6:51 p.m., Azat Khuzhin wrote:
> > generators/txt/document.cpp, line 69
> > <http://git.reviewboard.kde.org/r/109119/diff/1/?file=115130#file115130line69>
> >
> >     Maybe we must use `array.left( i )` here?
> >     And increment i += chunkSize before.

Seems to me you should actually kill the detectEncoding function so you use a single encoding detector all the time and just feed() it more data


- Albert


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109119/#review27938
-----------------------------------------------------------


On Feb. 23, 2013, 6:49 p.m., Azat Khuzhin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109119/
> -----------------------------------------------------------
> 
> (Updated Feb. 23, 2013, 6:49 p.m.)
> 
> 
> Review request for Okular.
> 
> 
> Description
> -------
> 
> Don't to extra job, when encoding is detected just return encoding.
> 
> 
> Diffs
> -----
> 
>   generators/txt/document.cpp badb647 
>   generators/txt/document.h 08babea 
> 
> Diff: http://git.reviewboard.kde.org/r/109119/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Azat Khuzhin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20130224/ab3cff1e/attachment.html>


More information about the Okular-devel mailing list