[
https://issues.apache.org/jira/browse/CASSANDRA-9980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14660223#comment-14660223
]
Paulo Motta commented on CASSANDRA-9980:
----------------------------------------
There were two problems here:
# The test used a date before 1970, so it was hitting
[CASSANDRA-10000|https://issues.apache.org/jira/browse/CASSANDRA-10000]. After
that is merged, this problem will be fixed.
# Default system encoding for English Windows is *not* utf-8, differently from
Linux, so that's why the strange characters were not being printed correctly in
the terminal. This [dtest
PR|https://github.com/riptano/cassandra-dtest/pull/443] uses the new cqlsh
option {{--encoding}} (provided by
[CASSANDRA-10004|https://issues.apache.org/jira/browse/CASSANDRA-10000]) to
enforce utf-8 during this test.
The code excerpt below shows the default encoding for English Windows systems:
{noformat}
C:\> python -c 'import locale; print locale.getpreferredencoding()'
cp1252
{noformat}
> test_eat_glass in cqlsh_tests fails on windows
> ----------------------------------------------
>
> Key: CASSANDRA-9980
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9980
> Project: Cassandra
> Issue Type: Sub-task
> Reporter: Philip Thompson
> Assignee: Paulo Motta
> Labels: cqlsh, windows
> Fix For: 2.2.x
>
>
> The cqlsh dtest {{cqlsh_tests.TestCqlsh.test_eat_glass}} is failing on
> windows with 2.2-head. It has been failing for a very long time. We've looked
> into it before, but haven't figured it out. Cqlsh does not return anything on
> the following query:
> {code}
> self.assertEquals(output.count('Можам да јадам стакло, а не ме штета.'), 16)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)