]> git.proxmox.com Git - mirror_qemu.git/commit - scripts/checkpatch.pl
checkpatch: detect doubly-encoded UTF-8
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 May 2019 13:19:00 +0000 (15:19 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Jul 2019 18:58:37 +0000 (20:58 +0200)
commit874acb6f838a659cd010d0db4176e3f52d8f7a57
tree01d5921c78a9308df3dae95bae2fe20cdd39ddaa
parent19752e09b4789f90721a96c4dcfa0d2e34510dfe
checkpatch: detect doubly-encoded UTF-8

Copy and pasting from Thunderbird's "view source" window results in double
encoding of multibyte UTF-8 sequences.  The appearance of those sequences is
very peculiar, so detect it and give an error despite the (low) possibility
of false positives.

As the major offender, I am also adding the same check to my applypatch-msg
and commit-msg hooks, but this will also cause patchew to croak loudly when
this mistake happens.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1558099140-53240-1-git-send-email-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/checkpatch.pl