Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 94B70200AF8 for ; Thu, 5 May 2016 18:43:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 935C1160A06; Thu, 5 May 2016 16:43:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E59621609F3 for ; Thu, 5 May 2016 18:43:13 +0200 (CEST) Received: (qmail 34765 invoked by uid 500); 5 May 2016 16:43:13 -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 34734 invoked by uid 99); 5 May 2016 16:43:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2016 16:43:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DE4242C1F5C for ; Thu, 5 May 2016 16:43:12 +0000 (UTC) Date: Thu, 5 May 2016 16:43:12 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-11626) cqlsh fails and exits on non-ascii chars MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 05 May 2016 16:43:14 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11626?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tyler Hobbs updated CASSANDRA-11626: ------------------------------------ Resolution: Fixed Fix Version/s: (was: 3.0.x) (was: 2.2.x) (was: 3.x) 3.0.7 3.7 2.2.7 Reproduced In: 3.5, 3.0.4 (was: 3.0.4, 3.5) Status: Resolved (was: Ready to Commit) Thanks, committed as [{{5de9de1f5832f2a0e92783e2f4412874423e6e15}}|https://= github.com/apache/cassandra/commit/5de9de1f5832f2a0e92783e2f4412874423e6e15= ] to 2.2 and merged up to 3.0, 3.7, and trunk. > cqlsh fails and exits on non-ascii chars > ---------------------------------------- > > Key: CASSANDRA-11626 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1162= 6 > Project: Cassandra > Issue Type: Bug > Components: Tools > Reporter: Robert Stupp > Assignee: Tyler Hobbs > Priority: Minor > Labels: cqlsh > Fix For: 2.2.7, 3.7, 3.0.7 > > > Just seen on cqlsh on current trunk: > To repro, copy {{=C3=A4}} (german umlaut) to cqlsh and press return. > cqlsh errors out and immediately exits. > {code} > $ bin/cqlsh > Connected to Test Cluster at 127.0.0.1:9042. > [cqlsh 5.0.1 | Cassandra 2.1.13-SNAPSHOT | CQL spec 3.2.1 | Native protoc= ol v3] > Use HELP for help. > cqlsh> =C3=A4 > Invalid syntax at line 1, char 1 > Traceback (most recent call last): > File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 2636, in <= module> > main(*read_options(sys.argv[1:], os.environ)) > File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 2625, in m= ain > shell.cmdloop() > File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 1114, in c= mdloop > if self.onecmd(self.statement.getvalue()): > File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 1139, in o= necmd > self.printerr(' %s' % statementline) > File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 2314, in p= rinterr > self.writeresult(text, color, newline=3Dnewline, out=3Dsys.stderr) > File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 2303, in w= riteresult > out.write(self.applycolor(str(text), color) + ('\n' if newline else '= ')) > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in posit= ion 2: ordinal not in range(128) > $=20 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)