aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index 21c9f8f3c5..91e2202be2 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -2497,6 +2497,14 @@ tvb_get_string_enc(wmem_allocator_t *scope, tvbuff_t *tvb, const gint offset,
strbuf = tvb_get_string_unichar2(scope, tvb, offset, length, charset_table_cp1250);
break;
+ case ENC_MAC_ROMAN:
+ strbuf = tvb_get_string_unichar2(scope, tvb, offset, length, charset_table_mac_roman);
+ break;
+
+ case ENC_CP437:
+ strbuf = tvb_get_string_unichar2(scope, tvb, offset, length, charset_table_cp437);
+ break;
+
case ENC_3GPP_TS_23_038_7BITS:
{
gint bit_offset = offset << 3;
@@ -2796,6 +2804,14 @@ tvb_get_stringz_enc(wmem_allocator_t *scope, tvbuff_t *tvb, const gint offset, g
strptr = tvb_get_stringz_unichar2(scope, tvb, offset, lengthp, charset_table_cp1250);
break;
+ case ENC_MAC_ROMAN:
+ strptr = tvb_get_stringz_unichar2(scope, tvb, offset, lengthp, charset_table_mac_roman);
+ break;
+
+ case ENC_CP437:
+ strptr = tvb_get_stringz_unichar2(scope, tvb, offset, lengthp, charset_table_cp437);
+ break;
+
case ENC_3GPP_TS_23_038_7BITS:
REPORT_DISSECTOR_BUG("TS 23.038 7bits has no null character and doesn't support null-terminated strings");
break;