From dev-return-58829-archive-asf-public=cust-asf.ponee.io@thrift.apache.org Fri Jun 19 17:56:03 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B9841180661 for ; Fri, 19 Jun 2020 19:56:02 +0200 (CEST) Received: (qmail 15443 invoked by uid 500); 19 Jun 2020 17:56:01 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 15230 invoked by uid 99); 19 Jun 2020 17:56:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2020 17:56:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CAF4A420DF for ; Fri, 19 Jun 2020 17:56:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 439CE782421 for ; Fri, 19 Jun 2020 17:56:00 +0000 (UTC) Date: Fri, 19 Jun 2020 17:56:00 +0000 (UTC) From: "Jens Geyer (Jira)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (THRIFT-2087) unicode decode errors MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/THRIFT-2087?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D171= 40733#comment-17140733 ]=20 Jens Geyer edited comment on THRIFT-2087 at 6/19/20, 5:55 PM: -------------------------------------------------------------- [~minisotm] Patch file broken. Is there an update available? {code:java} $ git apply ../thrift-2087-unicode-decode-errors.patch error: unrecognized input {code} =C2=A0 =C2=A0 was (Author: jensg): Patch file broken. Is there an update available? {code} $ git apply ../thrift-2087-unicode-decode-errors.patch error: unrecognized input {code} =C2=A0 =C2=A0 > unicode decode errors > --------------------- > > Key: THRIFT-2087 > URL: https://issues.apache.org/jira/browse/THRIFT-2087 > Project: Thrift > Issue Type: Improvement > Components: Python - Compiler > Affects Versions: 0.9 > Environment: Ubuntu 12.10 (GNU/Linux 3.5.0-17-generic x86_64), py= thon 2.7 > Reporter: Aleksey Maslennikov > Priority: Minor > Attachments: thrift-2087-unicode-decode-errors.patch > > > If the supplied string is not valid utf-8 there is an exception: > self.match =3D iprot.readString().decode('utf-8') > File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode > return codecs.utf_8_decode(input, errors, True) > UnicodeDecodeError: 'utf8' codec can't decode byte 0xf2 in position 0: in= valid continuation byte -- This message was sent by Atlassian Jira (v8.3.4#803005)