diff --git a/CHANGES.txt b/CHANGES.txt index 8a41b2e2c9..2e1f8c398b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -16,7 +16,7 @@ Merged from 3.0: * MV should use the maximum timestamp of the primary key (CASSANDRA-10910) * Fix potential assertion error during compaction (CASSANDRA-10944) Merged from 2.2: -2.2.5 + * (cqlsh) encode input correctly when saving history * Fix potential NPE on ORDER BY queries with IN (CASSANDRA-10955) * Start L0 STCS-compactions even if there is a L0 -> L1 compaction going (CASSANDRA-10979) @@ -76,6 +76,7 @@ Merged from 2.1: * Abort in-progress queries that time out (CASSANDRA-7392) * Add transparent data encryption core classes (CASSANDRA-9945) Merged from 3.0: + * Better handling of SSL connection errors inter-node (CASSANDRA-10816) * Avoid NoSuchElementException when executing empty batch (CASSANDRA-10711) * Avoid building PartitionUpdate in toString (CASSANDRA-10897) * Reduce heap spent when receiving many SSTables (CASSANDRA-10797) diff --git a/bin/cqlsh.py b/bin/cqlsh.py index cd81b93ade..418aa9ab63 100644 --- a/bin/cqlsh.py +++ b/bin/cqlsh.py @@ -1146,7 +1146,7 @@ class Shell(cmd.Cmd): new_hist = srcstr.replace("\n", " ").rstrip() if nl_count > 1 and self.last_hist != new_hist: - readline.add_history(new_hist) + readline.add_history(new_hist.encode(self.encoding)) self.last_hist = new_hist cmdword = tokens[0][1]