From Shmulik Bezale:
GSM_MAP - ucs2 support on USSD. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2991 svn path=/trunk/; revision=26606
This commit is contained in:
parent
1d4e3ad464
commit
d397a165c2
|
@ -460,7 +460,7 @@ actx->pinfo->p2p_dir = P2P_DIR_RECV;
|
|||
case SMS_ENCODING_UCS2_LANG:
|
||||
if ((cd = g_iconv_open("UTF-8","UCS-2BE")) != (GIConv) -1)
|
||||
{
|
||||
utf8_text = g_convert_with_iconv(tvb->real_data, length, cd, NULL, NULL, &l_conv_error);
|
||||
utf8_text = g_convert_with_iconv(parameter_tvb->real_data, length, cd, NULL, NULL, &l_conv_error);
|
||||
if(!l_conv_error)
|
||||
proto_tree_add_text(tree, tvb, 0, length, "USSD String: %%s", utf8_text);
|
||||
else
|
||||
|
|
|
@ -4081,7 +4081,7 @@ dissect_gsm_map_ss_USSD_String(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int
|
|||
case SMS_ENCODING_UCS2_LANG:
|
||||
if ((cd = g_iconv_open("UTF-8","UCS-2BE")) != (GIConv) -1)
|
||||
{
|
||||
utf8_text = g_convert_with_iconv(tvb->real_data, length, cd, NULL, NULL, &l_conv_error);
|
||||
utf8_text = g_convert_with_iconv(parameter_tvb->real_data, length, cd, NULL, NULL, &l_conv_error);
|
||||
if(!l_conv_error)
|
||||
proto_tree_add_text(tree, tvb, 0, length, "USSD String: %s", utf8_text);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue