Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E64B17A48 for ; Mon, 27 Jul 2015 14:52:07 +0000 (UTC) Received: (qmail 39605 invoked by uid 500); 27 Jul 2015 14:52:07 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 39575 invoked by uid 500); 27 Jul 2015 14:52:07 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 39562 invoked by uid 99); 27 Jul 2015 14:52:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2015 14:52:06 +0000 Date: Mon, 27 Jul 2015 14:52:06 +0000 (UTC) From: "Philip Thompson (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-9898) cqlsh crashes if it load a utf-8 file. 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/CASSANDRA-9898?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Philip Thompson updated CASSANDRA-9898: --------------------------------------- Reproduced In: 2.1.8, 2.2.0 rc2 (was: 2.2.0 rc2, 2.1.8) Reviewer: Tyler Hobbs > cqlsh crashes if it load a utf-8 file. > -------------------------------------- > > Key: CASSANDRA-9898 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9898 > Project: Cassandra > Issue Type: Bug > Components: Tools > Environment: linux, os x yosemite. > Reporter: Yasuharu Goto > Assignee: Yasuharu Goto > Priority: Minor > Labels: cqlsh > Fix For: 2.1.x, 2.2.x > > Attachments: cassandra-2.1-9898.txt, cassandra-2.2-9898.txt > > > cqlsh crashes when it load a cql script file encoded in utf-8. > This is a reproduction procedure. > {quote} > $cat ./test.cql > // =E6=97=A5=E6=9C=AC=E8=AA=9E=E3=81=AE=E3=82=B3=E3=83=A1=E3=83=B3=E3=83= =88 > use system; > select * from system.peers; > $cqlsh --version > cqlsh 5.0.1 > $cqlsh -f ./test.cql > Traceback (most recent call last): > File "./cqlsh", line 2459, in > main(*read_options(sys.argv[1:], os.environ)) > File "./cqlsh", line 2451, in main > shell.cmdloop() > File "./cqlsh", line 940, in cmdloop > line =3D self.get_input_line(self.prompt) > File "./cqlsh", line 909, in get_input_line > self.lastcmd =3D self.stdin.readline() > File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/pyth= on2.7/codecs.py", line 675, in readline > return self.reader.readline(size) > File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/pyth= on2.7/codecs.py", line 530, in readline > data =3D self.read(readsize, firstline=3DTrue) > File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/pyth= on2.7/codecs.py", line 477, in read > newchars, decodedbytes =3D self.decode(data, self.errors) > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)