cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Motta (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-11030) utf-8 characters incorrectly displayed/inserted on cqlsh on Windows
Date Sat, 30 Jan 2016 01:22:39 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-11030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15124576#comment-15124576
] 

Paulo Motta edited comment on CASSANDRA-11030 at 1/30/16 1:22 AM:
------------------------------------------------------------------

bq. I think we need to move the codec registration further up, I just stumbled into this:

Done, also fixed commit message and some other minor style nits, thanks!

bq. but it fails on my newer laptop running 2.7.11

Tested new version on 2.7.10 as well as 2.7.11, and it works. Could you try this new version
with {{chcp 65001}} before launching cqlsh and {{--encoding utf8}} ? If it works like this
but doesn't work without {{--encoding utf8}}, I think it will be dependent if the system default
encoding supports or not utf-8 characters, so I think we can leave it like this as there is
a simple workaround.

Resubmitted tests, please mark as ready to commit if you're satisfied.


was (Author: pauloricardomg):
bq. I think we need to move the codec registration further up, I just stumbled into this:

Done, also fixed commit message, thanks!

bq. but it fails on my newer laptop running 2.7.11

Tested new version on 2.7.10 as well as 2.7.11, and it works. Could you try this new version
with {{chcp 65001}} before launching cqlsh and {{--encoding utf8}} ? If it works like this
but doesn't work without {{--encoding utf8}}, I think it will be dependent if the system default
encoding supports or not utf-8 characters, so I think we can leave it like this as there is
a simple workaround.

Resubmitted tests, please mark as ready to commit if you're satisfied.

> utf-8 characters incorrectly displayed/inserted on cqlsh on Windows
> -------------------------------------------------------------------
>
>                 Key: CASSANDRA-11030
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11030
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Paulo Motta
>            Assignee: Paulo Motta
>            Priority: Minor
>              Labels: cqlsh, windows
>
> {noformat}
> C:\Users\Paulo\Repositories\cassandra [2.2-10948 +6 ~1 -0 !]> .\bin\cqlsh.bat --encoding
utf-8
> Connected to test at 127.0.0.1:9042.
> [cqlsh 5.0.1 | Cassandra 2.2.4-SNAPSHOT | CQL spec 3.3.1 | Native protocol v4]
> Use HELP for help.
> cqlsh> INSERT INTO bla.test (bla ) VALUES  ('não') ;
> cqlsh> select * from bla.test;
>  bla
> -----
>  n?o
> (1 rows)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message