Skip to content

Handle UTF-8 characters in patches

Major Hayden requested to merge github/fork/major/read-patches-with-utf-8 into master

Reading a patch with UTF-8 characters causes unicode errors in Python. This patch changes the file handle to binary mode and decodes the byte string back to a regular string right after.

Patch to test with: https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/plain/queue-5.0/sch_cake-use-tc_skb_protocol-helper-for-getting-packet-protocol.patch

Signed-off-by: Major Hayden major@redhat.com

Merge request reports