cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
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

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

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)
library
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-5369
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5369
>             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 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

Mime
View raw message