You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "warren (JIRA)" <ji...@apache.org> on 2016/11/20 10:39:58 UTC

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

warren created CASSANDRA-12933:
----------------------------------

             Summary: 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
             Fix For: 3.9


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
(v6.3.4#6332)