cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <>
Subject [jira] [Resolved] (CASSANDRA-5369) cqlsh drops characters from script files with wrong version of the Python libedit (readline) library
Date Fri, 22 Mar 2013 13:53:16 GMT


Aleksey Yeschenko resolved CASSANDRA-5369.

    Resolution: Cannot Reproduce

Actually, both SOURCE and 'cqlsh -f' don't involve readline/libedit at all and read directly
from the script file. I downgraded back to stock OSX python 2.7.2 with libedit, and while
it's indeed impossible to enter certain accented characters, like 'é', replaying inserts
with it using SOURCE or 'cqlsh -f' works just fine and doesn't drop these characters.

So, can't fix the former - the only way is to install readline, and the latter is not an issue
at all.
> cqlsh drops characters from script files with wrong version of the Python libedit (readline)
> ----------------------------------------------------------------------------------------------------
>                 Key: CASSANDRA-5369
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.1.10, 1.2.3
>         Environment: MAC OSX  Python 2.7.3.   readline (unknown version)
>            Reporter: Steven Lowenthal
>            Assignee: Aleksey Yeschenko
>            Priority: Minor
> 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
> Reading
> Reading
> Best match: readline
> Downloading
> Processing readline-
> creating /Library/Python/2.7/site-packages/readline-
> Extracting readline- to /Library/Python/2.7/site-packages
> Adding readline to easy-install.pth file
> Installed /Library/Python/2.7/site-packages/readline-
> 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:

View raw message