Browse Source

respect existing unicode keys

dxt 4 years ago
parent
commit
cb17568521
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/stores/kvs_rocks.erl

+ 1 - 1
src/stores/kvs_rocks.erl

@@ -13,7 +13,7 @@ bt([]) -> [];
 bt(X)  -> binary_to_term(X).
 
 tb([]) -> <<>>;
-tb(T) when is_list(T) -> list_to_binary(T);
+tb(T) when is_list(T) -> unicode:characters_to_nfkc_binary(T);
 tb(T) when is_atom(T) -> atom_to_binary(T, utf8);
 tb(T) when is_binary(T) -> T;
 tb(T) -> term_to_binary(T).