All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] python-hpack: fix build breakage due to UTF-8 formatted file
@ 2017-08-01  8:20 yegorslists at googlemail.com
  2017-08-01 17:14 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: yegorslists at googlemail.com @ 2017-08-01  8:20 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

UTF-8 formatted file breaks installations on some systems:

Traceback (most recent call last):
  File "setup.py", line 34, in <module>
    long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(),
  File "/home/peko/autobuild/instance-1/output/target/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1125: ordinal not in range(128)

This patch replaces '?' with 'S' meaning 'Section' and hence converts file to plain ASCII.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 ...rt-HISTORY.rst-from-UTF-8-format-to-ASCII.patch | 40 ++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 package/python-hpack/0001-Convert-HISTORY.rst-from-UTF-8-format-to-ASCII.patch

diff --git a/package/python-hpack/0001-Convert-HISTORY.rst-from-UTF-8-format-to-ASCII.patch b/package/python-hpack/0001-Convert-HISTORY.rst-from-UTF-8-format-to-ASCII.patch
new file mode 100644
index 000000000..015b8a24d
--- /dev/null
+++ b/package/python-hpack/0001-Convert-HISTORY.rst-from-UTF-8-format-to-ASCII.patch
@@ -0,0 +1,40 @@
+From 3d195f4f599f37c89419f1db1302f94acb38c264 Mon Sep 17 00:00:00 2001
+From: Yegor Yefremov <yegorslists@googlemail.com>
+Date: Tue, 1 Aug 2017 10:15:33 +0200
+Subject: [PATCH] Convert HISTORY.rst from UTF-8 format to ASCII
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+UTF-8 formatted file breaks installations on some systems:
+
+Traceback (most recent call last):
+  File "setup.py", line 34, in <module>
+    long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(),
+  File "/home/peko/autobuild/instance-1/output/target/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
+    return codecs.ascii_decode(input, self.errors)[0]
+UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1125: ordinal not in range(128)
+
+To fix this error just replace '?' with 'S' meaning 'Section'.
+
+Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
+---
+ HISTORY.rst | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/HISTORY.rst b/HISTORY.rst
+index 37b2d9c..b9310f5 100644
+--- a/HISTORY.rst
++++ b/HISTORY.rst
+@@ -27,7 +27,7 @@ Release History
+ - HPACK now tolerates receiving multiple header table size changes in sequence,
+   rather than only one.
+ - HPACK now forbids header table size changes anywhere but first in a header
+-  block, as required by RFC 7541 ? 4.2.
++  block, as required by RFC 7541 S 4.2.
+ - Other miscellaneous performance improvements.
+ 
+ 2.3.0 (2016-08-04)
+-- 
+2.11.0
+
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] python-hpack: fix build breakage due to UTF-8 formatted file
  2017-08-01  8:20 [Buildroot] [PATCH] python-hpack: fix build breakage due to UTF-8 formatted file yegorslists at googlemail.com
@ 2017-08-01 17:14 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-08-01 17:14 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue,  1 Aug 2017 10:20:13 +0200, yegorslists at googlemail.com wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> 
> UTF-8 formatted file breaks installations on some systems:
> 
> Traceback (most recent call last):
>   File "setup.py", line 34, in <module>
>     long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(),
>   File "/home/peko/autobuild/instance-1/output/target/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
>     return codecs.ascii_decode(input, self.errors)[0]
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1125: ordinal not in range(128)
> 
> This patch replaces '?' with 'S' meaning 'Section' and hence converts file to plain ASCII.
> 
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
>  ...rt-HISTORY.rst-from-UTF-8-format-to-ASCII.patch | 40 ++++++++++++++++++++++
>  1 file changed, 40 insertions(+)
>  create mode 100644 package/python-hpack/0001-Convert-HISTORY.rst-from-UTF-8-format-to-ASCII.patch

Applied to master, after adding a reference to the autobuilder failure
being fixed, as discussed on IRC earlier today.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-01 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-01  8:20 [Buildroot] [PATCH] python-hpack: fix build breakage due to UTF-8 formatted file yegorslists at googlemail.com
2017-08-01 17:14 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.