diff options
| author | Paul Schoenfelder <paulschoenfelder@gmail.com> | 2017-02-26 16:13:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-26 16:13:29 -0500 |
| commit | d63f5ef885e3bab366cd88dd2f0cff93ec41f87a (patch) | |
| tree | a946f76aebf36ed336d71fe7d2e56374d08908be /lib/exirc/utils.ex | |
| parent | Merge pull request #60 from w1gz/unicode-bug-in-get-args (diff) | |
| parent | Convert our unicode list to binary instead of relying on the latin1 option of (diff) | |
Merge pull request #61 from w1gz/avoid-latin1-charset
Convert our unicode list to binary instead of relying on the latin1 o…
Diffstat (limited to 'lib/exirc/utils.ex')
| -rw-r--r-- | lib/exirc/utils.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/exirc/utils.ex b/lib/exirc/utils.ex index 0ef392e..b2a79cd 100644 --- a/lib/exirc/utils.ex +++ b/lib/exirc/utils.ex @@ -75,7 +75,8 @@ defmodule ExIrc.Utils do |> Enum.reverse |> Enum.filter(fn arg -> arg != [] end) |> Enum.map(&trim_crlf/1) - |> Enum.map(&(:unicode.characters_to_binary(&1, :unicode, :latin1))) + |> Enum.map(&:binary.list_to_bin/1) + |> Enum.map(&:unicode.characters_to_binary/1) post_process(%{msg | args: args}) end |
