Steven Lowenthal created CASSANDRA-5369:
-------------------------------------------
Summary: cqlsh drops characters from script files with wrong
version of the Python libedit (readline) library
Key: CASSANDRA-5369
URL: https://issues.apache.org/jira/browse/CASSANDRA-5369
Project: Cassandra
Issue Type: Bug
Affects Versions: 2.1
Environment: MAC OSX Python 2.7.3. readline (unknown version)
Reporter: Steven Lowenthal
If an python installation has the wrong version of readline, cqlsh does not
allow non-ascii characters such as in the word "café". When reading a script,
cqlsh simply drops those characters out of the script. In my case, the script
contained insert statements, and C* thereby inserted bad data. cqlsh needs to
throw if there is a version of readline that exhibits this behavior. This
behavior was exhibited in my version of OSX 10.8
It was remedied by upgrading readline:
Steves-MacBook-Pro:bin stevelowenthal$ sudo easy_install readline
Password:
Searching for readline
Reading http://pypi.python.org/simple/readline/
Reading http://github.com/ludwigschwardt/python-readline
Reading http://www.python.org/
Best match: readline 6.2.4.1
Downloading
http://pypi.python.org/packages/2.7/r/readline/readline-6.2.4.1-py2.7-macosx-10.7-intel.egg#md5=6ede61046a61219a6d97c44a75853c23
Processing readline-6.2.4.1-py2.7-macosx-10.7-intel.egg
creating
/Library/Python/2.7/site-packages/readline-6.2.4.1-py2.7-macosx-10.7-intel.egg
Extracting readline-6.2.4.1-py2.7-macosx-10.7-intel.egg to
/Library/Python/2.7/site-packages
Adding readline 6.2.4.1 to easy-install.pth file
Installed
/Library/Python/2.7/site-packages/readline-6.2.4.1-py2.7-macosx-10.7-intel.egg
Processing dependencies for readline
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira