You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michael Shuler (JIRA)" <ji...@apache.org> on 2018/02/12 21:03:00 UTC

[jira] [Updated] (CASSANDRA-12933) cqlsh shows IOError when display Chinese word in command prompt

     [ https://issues.apache.org/jira/browse/CASSANDRA-12933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Shuler updated CASSANDRA-12933:
---------------------------------------
    Fix Version/s:     (was: 3.9)
                   3.11.x

> cqlsh shows IOError when display Chinese word in command prompt
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-12933
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12933
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>         Environment: windows 8
>            Reporter: warren
>            Priority: Major
>             Fix For: 3.11.x
>
>
> I select data from one table which contains Chinese words. I have already changed the code page of the command prompt to 65001. However, it still cannot show all the data from the table. 
> cqlsh:nova> select * from comic; 
>  name      | author_name
> -----------+--------------
>          a | jimi-hendrix
>  Node |   尾田荣一郎
> Traceback (most recent call last):
>   File "D:\Programs\apache-cassandra-3.9\bin\\cqlsh.py", line 1139, in onecmd
>     self.handle_statement(st, statementtext)
>   File "D:\Programs\apache-cassandra-3.9\bin\\cqlsh.py", line 1176, in handle_statement
>     return custom_handler(parsed)
>   File "D:\Programs\apache-cassandra-3.9\bin\\cqlsh.py", line 1208, in do_select
>     self.perform_statement(statement)
>   File "D:\Programs\apache-cassandra-3.9\bin\\cqlsh.py", line 1213, in perform_statement
>     success, future = self.perform_simple_statement(stmt)
>   File "D:\Programs\apache-cassandra-3.9\bin\\cqlsh.py", line 1284, in perform_simple_statement
>     self.print_result(result, self.parse_for_select_meta(statement.query_string))
>   File "D:\Programs\apache-cassandra-3.9\bin\\cqlsh.py", line 1315, in print_result
>     self.print_static_result(result.column_names, rows, table_meta)
>   File "D:\Programs\apache-cassandra-3.9\bin\\cqlsh.py", line 1347, in print_static_result
>     self.print_formatted_result(formatted_names, formatted_values)
>   File "D:\Programs\apache-cassandra-3.9\bin\\cqlsh.py", line 1370, in print_formatted_result
>     self.writeresult(' ' + line)
>   File "D:\Programs\apache-cassandra-3.9\bin\\cqlsh.py", line 2305, in writeresult
>     out.write(to_write)
> IOError: [Errno 0] Error



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org