cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei Deng (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-11626) cqlsh fails and exists on non-ascii chars
Date Wed, 27 Apr 2016 05:39:12 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-11626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15259587#comment-15259587
] 

Wei Deng commented on CASSANDRA-11626:
--------------------------------------

Yeah I don't think it's the same problem. See the following using latest trunk build:

{noformat}
root@node0:~/cassandra-trunk# ~/cassandra-trunk/bin/cqlsh --encoding=utf-8 --debug
Using CQL driver: <module 'cassandra' from '/root/cassandra-trunk/bin/../lib/cassandra-driver-internal-only-3.0.0-6af642d.zip/cassandra-driver-3.0.0-6af642d/cassandra/__init__.py'>
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> ä
Invalid syntax at line 1, char 1
Traceback (most recent call last):
  File "/root/cassandra-trunk/bin/cqlsh.py", line 2636, in <module>
    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=newline, out=sys.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 position 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-11626
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Robert Stupp
>            Priority: Minor
>
> Just seen on cqlsh on current trunk:
> To repro, copy {{ä}} (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 protocol v3]
> Use HELP for help.
> cqlsh> ä
> 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 main
>     shell.cmdloop()
>   File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 1114, in cmdloop
>     if self.onecmd(self.statement.getvalue()):
>   File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 1139, in onecmd
>     self.printerr('  %s' % statementline)
>   File "/Users/snazy/devel/cassandra/trunk/bin/cqlsh.py", line 2314, in printerr
>     self.writeresult(text, color, newline=newline, out=sys.stderr)
>   File "/Users/snazy/devel/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 position 2: ordinal
not in range(128)
> $ 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message