-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug fix for unicode in riak-shell #68
Conversation
Unicode in input was being handled correctly by the riak_shell lexer/parser (and by the SQL one) but not by the cmd pretty printer This is used in writing the history and the logs and it was borking on unicode - in particular smart quotes inserted into SQL on pasting from some editors. The regular expression clean up and output munging is now unicode friendly. riak_shell doesn't log errored commands so it is hard to regression test for this.
Thanks @gordonguthrie! Settings---
minimum_reviewers: 2
build_steps:
- make clean
- make deps
- make compile
- make test
- make xref
- make dialyzer
merge: true
org_mode: true
timeout: 1790 |
There seems to be an issue with build step **make_test** ! ☁️✅ MERGE
✅ MAKE_CLEAN
✅ MAKE_DEPS
✅ MAKE_COMPILE
⛔ MAKE_TEST
✅ MAKE_XREF
✅ MAKE_DIALYZER
⬜ 0 of 2 Code reviews from organization basho |
Associated with this |
+1 |
1 similar comment
+1 |
@@ -106,3 +110,13 @@ datetime() -> | |||
|
|||
pad(X) when is_integer(X) -> | |||
io_lib:format("~2.10.0B", [X]). | |||
|
|||
-ifdef(TEST). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit tests! Huzzah!
Looks like we actually ignored the output of Thumbs @gordonguthrie
|
Unicode in input was being handled correctly by the riak_shell
lexer/parser (and by the SQL one) but not by the cmd pretty printer
This is used in writing the history and the logs and it was borking
on unicode - in particular smart quotes inserted into SQL on pasting
from some editors.
The regular expression clean up and output munging is now unicode
friendly.
riak_shell doesn't log errored commands so it is hard to regression
test for this.