You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. I'm aware of this and it is fixed in the new version for Clojure 1.2 that I'm working on. I will take a look at a fix for this version.
Great! Actually, the problem exists even in the code I just submitted to you (multi-bulk commands), but it is easy to fix there, it's enough to use (count (.getBytes arg)) instead of (count arg).
I looked at the other places, but I don't know enough about Java I/O to fix the input issues.
I would really appreciate a fix for the current version.
Redis-clojure uses the counts reported by Redis as character counts, while Redis specs clearly say they are byte counts.
The correct way to go about this is probably to go through java.nio.charset.Charset/defaultCharset.
Right now redis-clojure isn't safe for non-ASCII data.
The text was updated successfully, but these errors were encountered: