Re: Bug#763266: codespell: "Trying next encoding: utf-8"

10 views
Skip to first unread message

Paul Wise

unread,
Sep 28, 2014, 8:18:26 PM9/28/14
to codespell, 763...@bugs.debian.org
Control: tags -1 + patch upstream
Control: forwarded -1 code...@googlegroups.com

On Sun, 2014-09-28 at 19:56 +0200, Jakub Wilk wrote:

> Package: codespell
> Severity: minor
>
> $ printf '\xff' > test
> $ codespell test
> WARNING: Decoding file test
> WARNING: using encoding=utf-8 failed.
> WARNING: Trying next encoding: utf-8
>
>
> Of course if encoding=utf-8 failed, there is no point trying utf-8
> again. The last line should instead read:
>
> WARNING: Trying next encoding: iso-8859-1

The attached patch fixes this issue.

--
bye,
pabs

https://wiki.debian.org/PaulWise

0001-Print-the-correct-next-encoding-when-falling-back-to.patch
signature.asc

Lucas De Marchi

unread,
Sep 29, 2014, 9:05:56 AM9/29/14
to code...@googlegroups.com, 763...@bugs.debian.org
Applied. Thanks.

--

Lucas De Marchi
Reply all
Reply to author
Forward
0 new messages