Browse files

Switch to pure-erlang version of gsm0338

  • Loading branch information...
1 parent abce1d2 commit 5a0340e6a54b7da11333cf0f3e83504d5ed57da9 @iamaleksey iamaleksey committed May 31, 2012
Showing with 3 additions and 5 deletions.
  1. +1 −1 rebar.config
  2. +1 −2 src/just_request_processor.erl
  3. +1 −2 src/just_smpp_client.erl
View
2 rebar.config
@@ -10,7 +10,7 @@
{libuuid, "1.0.0", {git, "git://github.com/iamaleksey/libuuid.git",
{branch, "master"}}},
{gsm0338, "1.0", {git, "git://github.com/iamaleksey/gsm0338.git",
- {branch, "master"}}},
+ {branch, "pure-erlang"}}},
{iconverl, "1.0", {git, "git://github.com/iamaleksey/iconverl.git",
{branch, "master"}}},
{pmm_smpplib, "0.2.0", {git, "git://github.com/PowerMeMobile/pmm_smpplib.git",
View
3 src/just_request_processor.erl
@@ -170,8 +170,7 @@ encoding_dc_bitness(SmsRequest, Params, Settings) ->
{E, ?gv(data_coding, Params, DC), B}.
encode_msg(Msg, gsm0338) ->
- {_Validity, Encoded} = gsm0338:from_utf8(Msg),
- Encoded;
+ gsm0338:from_utf8(Msg);
encode_msg(Msg, ascii) ->
Msg;
encode_msg(Msg, latin1) ->
View
3 src/just_smpp_client.erl
@@ -448,8 +448,7 @@ extract_sar_info(Body) ->
decode_text(DC, Text) when DC =:= 0; DC =:= 16; DC =:= 240 ->
% gsm 0338.
- {_Validity, Decoded} = gsm0338:to_utf8(Text),
- Decoded;
+ gsm0338:to_utf8(Text);
decode_text(3, Text) ->
% latin1.
{ok, Decoded} = iconverl:conv("utf-8//IGNORE", "latin1", Text),

0 comments on commit 5a0340e

Please sign in to comment.