summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-ansi_637.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-12-08 20:03:15 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-12-08 20:03:15 +0000
commit93398e794e9afb2e304d27d86287db3054724755 (patch)
treeb28073e4314ca33a4058bfd392df1642576a1f40 /epan/dissectors/packet-ansi_637.c
parent2dd25c2c482e573a26db19db995dd171c7667cea (diff)
downloadwireshark-93398e794e9afb2e304d27d86287db3054724755.tar.gz
Use STR_UNICODE display instead of proto_tree_add_unicode_string() in the remaining dissectors
svn path=/trunk/; revision=53867
Diffstat (limited to 'epan/dissectors/packet-ansi_637.c')
-rw-r--r--epan/dissectors/packet-ansi_637.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/epan/dissectors/packet-ansi_637.c b/epan/dissectors/packet-ansi_637.c
index 62a577412e..b2d28c25b4 100644
--- a/epan/dissectors/packet-ansi_637.c
+++ b/epan/dissectors/packet-ansi_637.c
@@ -597,8 +597,8 @@ tele_param_user_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint
decode_7_bits(tvb_out, &offset, num_fields, &oct, &bit, ansi_637_bigbuf);
- proto_tree_add_unicode_string(tree, hf_ansi_637_tele_user_data_text, tvb_out, saved_offset,
- offset - saved_offset, ansi_637_bigbuf);
+ proto_tree_add_string(tree, hf_ansi_637_tele_user_data_text, tvb_out, saved_offset,
+ offset - saved_offset, ansi_637_bigbuf);
switch (bit)
{
@@ -658,8 +658,8 @@ tele_param_user_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint
out_len = decode_7_bits(tvb_out, &offset, num_fields, &oct, &bit, ansi_637_bigbuf);
IA5_7BIT_decode(ia5_637_bigbuf, ansi_637_bigbuf, out_len);
- proto_tree_add_unicode_string(tree, hf_ansi_637_tele_user_data_text, tvb_out, saved_offset,
- offset - saved_offset, ia5_637_bigbuf);
+ proto_tree_add_string(tree, hf_ansi_637_tele_user_data_text, tvb_out,
+ saved_offset, offset - saved_offset, ia5_637_bigbuf);
}
else if (encoding == 0x04)/* UCS-2 (not UTF-16?) */
@@ -686,8 +686,8 @@ tele_param_user_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint
utf8_text = g_convert_with_iconv(tvb_get_ptr(tvb_out, offset, required_octs), required_octs , cd , NULL , NULL , &l_conv_error);
if (!l_conv_error)
{
- proto_tree_add_unicode_string(tree, hf_ansi_637_tele_user_data_text, tvb_out, offset,
- required_octs, utf8_text);
+ proto_tree_add_string(tree, hf_ansi_637_tele_user_data_text,
+ tvb_out, offset, required_octs, utf8_text);
}
else
{
@@ -722,8 +722,8 @@ tele_param_user_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint
utf8_text = g_convert_with_iconv(tvb_get_ptr(tvb_out, offset, num_fields), num_fields , cd , NULL , NULL , &l_conv_error);
if (!l_conv_error)
{
- proto_tree_add_unicode_string(tree, hf_ansi_637_tele_user_data_text, tvb_out, offset,
- num_fields, utf8_text);
+ proto_tree_add_string(tree, hf_ansi_637_tele_user_data_text,
+ tvb_out, offset, num_fields, utf8_text);
}
else
{
@@ -758,8 +758,8 @@ tele_param_user_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint
utf8_text = g_convert_with_iconv(tvb_get_ptr(tvb_out, offset, num_fields) , num_fields , cd , NULL , NULL , &l_conv_error);
if (!l_conv_error)
{
- proto_tree_add_unicode_string(tree, hf_ansi_637_tele_user_data_text, tvb_out, offset,
- num_fields, utf8_text);
+ proto_tree_add_string(tree, hf_ansi_637_tele_user_data_text,
+ tvb_out, offset, num_fields, utf8_text);
}
else
{
@@ -807,8 +807,8 @@ tele_param_user_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint
tvb_get_ptr(tvb_out, offset, required_octs), gsm_637_bigbuf);
gsm_637_bigbuf[out_len] = '\0';
- proto_tree_add_unicode_string(tree, hf_ansi_637_tele_user_data_text, tvb_out, offset,
- required_octs, gsm_sms_chars_to_utf8(gsm_637_bigbuf, num_fields));
+ proto_tree_add_string(tree, hf_ansi_637_tele_user_data_text, tvb_out, offset,
+ required_octs, gsm_sms_chars_to_utf8(gsm_637_bigbuf, num_fields));
}
else if (encoding == 0x10)/* KSC5601 (Korean) */
{
@@ -834,8 +834,8 @@ tele_param_user_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint
utf8_text = g_convert_with_iconv(tvb_get_ptr(tvb_out, offset, num_fields), num_fields , cd , NULL , NULL , &l_conv_error);
if (!l_conv_error)
{
- proto_tree_add_unicode_string(tree, hf_ansi_637_tele_user_data_text, tvb_out, offset,
- num_fields, utf8_text);
+ proto_tree_add_string(tree, hf_ansi_637_tele_user_data_text,
+ tvb_out, offset, num_fields, utf8_text);
}
else
{
@@ -2324,7 +2324,7 @@ proto_register_ansi_637(void)
NULL, HFILL }},
{ &hf_ansi_637_tele_user_data_text,
{ "Encoded user data", "ansi_637_tele.user_data.text",
- FT_STRING, BASE_NONE, NULL, 0,
+ FT_STRING, STR_UNICODE, NULL, 0,
NULL, HFILL }},
};