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 1146D1921B for ; Wed, 27 Apr 2016 05:41:14 +0000 (UTC) Received: (qmail 46068 invoked by uid 500); 27 Apr 2016 05:41:13 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 46016 invoked by uid 500); 27 Apr 2016 05:41: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 45748 invoked by uid 99); 27 Apr 2016 05:41:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2016 05:41:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 48F732C1F71 for ; Wed, 27 Apr 2016 05:41:13 +0000 (UTC) Date: Wed, 27 Apr 2016 05:41:13 +0000 (UTC) From: "Wei Deng (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-11626) cqlsh fails and exists on non-ascii chars 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-11626?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D15259587#comment-15259587 ]=20 Wei Deng edited comment on CASSANDRA-11626 at 4/27/16 5:40 AM: --------------------------------------------------------------- Yeah I don't think it's the same problem as CASSANDRA-11124. See the follow= ing using latest trunk build: {noformat} root@node0:~/cassandra-trunk# ~/cassandra-trunk/bin/cqlsh --encoding=3Dutf-= 8 --debug Using CQL driver: Using connect timeout: 5 seconds Using 'utf-8' encoding Using ssl: False Connected to Test Cluster at 127.0.0.1:9042. [cqlsh 5.0.1 | Cassandra 3.6-SNAPSHOT | CQL spec 3.4.2 | Native protocol v4= ] Use HELP for help. cqlsh> =C3=A4 Invalid syntax at line 1, char 1 Traceback (most recent call last): File "/root/cassandra-trunk/bin/cqlsh.py", line 2636, in main(*read_options(sys.argv[1:], os.environ)) File "/root/cassandra-trunk/bin/cqlsh.py", line 2625, in main shell.cmdloop() File "/root/cassandra-trunk/bin/cqlsh.py", line 1114, in cmdloop if self.onecmd(self.statement.getvalue()): File "/root/cassandra-trunk/bin/cqlsh.py", line 1139, in onecmd self.printerr(' %s' % statementline) File "/root/cassandra-trunk/bin/cqlsh.py", line 2314, in printerr self.writeresult(text, color, newline=3Dnewline, out=3Dsys.stderr) File "/root/cassandra-trunk/bin/cqlsh.py", line 2303, in writeresult out.write(self.applycolor(str(text), color) + ('\n' if newline else '')= ) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in positio= n 2: ordinal not in range(128) {noformat} This is easily reproducible on a number C* 3.x version (3.0.4 and 3.6). was (Author: weideng): Yeah I don't think it's the same problem. See the following using latest tr= unk build: {noformat} root@node0:~/cassandra-trunk# ~/cassandra-trunk/bin/cqlsh --encoding=3Dutf-= 8 --debug Using CQL driver: Using connect timeout: 5 seconds Using 'utf-8' encoding Using ssl: False Connected to Test Cluster at 127.0.0.1:9042. [cqlsh 5.0.1 | Cassandra 3.6-SNAPSHOT | CQL spec 3.4.2 | Native protocol v4= ] Use HELP for help. cqlsh> =C3=A4 Invalid syntax at line 1, char 1 Traceback (most recent call last): File "/root/cassandra-trunk/bin/cqlsh.py", line 2636, in main(*read_options(sys.argv[1:], os.environ)) File "/root/cassandra-trunk/bin/cqlsh.py", line 2625, in main shell.cmdloop() File "/root/cassandra-trunk/bin/cqlsh.py", line 1114, in cmdloop if self.onecmd(self.statement.getvalue()): File "/root/cassandra-trunk/bin/cqlsh.py", line 1139, in onecmd self.printerr(' %s' % statementline) File "/root/cassandra-trunk/bin/cqlsh.py", line 2314, in printerr self.writeresult(text, color, newline=3Dnewline, out=3Dsys.stderr) File "/root/cassandra-trunk/bin/cqlsh.py", line 2303, in writeresult out.write(self.applycolor(str(text), color) + ('\n' if newline else '')= ) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in positio= n 2: ordinal not in range(128) {noformat} > cqlsh fails and exists on non-ascii chars > ----------------------------------------- > > Key: CASSANDRA-11626 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1162= 6 > Project: Cassandra > Issue Type: Bug > Reporter: Robert Stupp > Priority: Minor > > 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)