diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-12-24 00:20:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-12-24 00:20:09 +0000 |
commit | 0d7a48a8bfb2b9f954d0f6b37172bb28e0239a92 (patch) | |
tree | 1ed37fc09109411f1581cc5ae34a32b28a5d80cc /epan/dissectors/packet-etsi_card_app_toolkit.c | |
parent | 57c6542aaf3e0c60a46dd60f9d0c6a814928bc8d (diff) |
Add a ENC_3GPP_TS_23_038 encoding, for the standard SMS alphabet in a
bit-packed string, and use it in some places.
svn path=/trunk/; revision=54428
Diffstat (limited to 'epan/dissectors/packet-etsi_card_app_toolkit.c')
-rw-r--r-- | epan/dissectors/packet-etsi_card_app_toolkit.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/epan/dissectors/packet-etsi_card_app_toolkit.c b/epan/dissectors/packet-etsi_card_app_toolkit.c index a4ba641ef5..2270d6e1bc 100644 --- a/epan/dissectors/packet-etsi_card_app_toolkit.c +++ b/epan/dissectors/packet-etsi_card_app_toolkit.c @@ -1065,15 +1065,7 @@ dissect_cat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) } switch (g8) { case 0x00: /* 7bit */ - { - int out_len; - unsigned char msgbuf[300]; - - out_len = gsm_sms_char_7bit_unpack(0, len-1, sizeof(msgbuf), tvb_get_ptr(tvb, pos+1, len-1), msgbuf); - msgbuf[out_len] = '\0'; - proto_tree_add_string(elem_tree, hf_ctlv_text_string, tvb, pos+1, - len-1, gsm_sms_chars_to_utf8(msgbuf, out_len)); - } + proto_tree_add_item(elem_tree, hf_ctlv_text_string, tvb, pos+1, len-1, ENC_3GPP_TS_23_038|ENC_NA); break; case 0x04: /* 8bit */ /* XXX - ASCII, or some extended ASCII? */ |