diff options
author | kanidef <nideff.ru@gmail.com> | 2019-01-03 10:07:02 +0300 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-01-04 23:37:17 +0000 |
commit | 5fa9257704eae2e768596c9240a9a62bd96e02de (patch) | |
tree | 7e848df669a5274e036860e5eb8ee0a335987641 /epan/tvbuff.c | |
parent | 340ad1793b08faa4bfe79fcd2bba80ce68513d42 (diff) |
add encoding windows 1251, cp855, cp866
Change-Id: I0e8507cf63d89942167ca579ef304bc3d679346e
Reviewed-on: https://code.wireshark.org/review/31316
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r-- | epan/tvbuff.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c index 110c437437..9777508f29 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -2809,6 +2809,10 @@ tvb_get_string_enc(wmem_allocator_t *scope, tvbuff_t *tvb, const gint offset, strptr = tvb_get_string_unichar2(scope, tvb, offset, length, charset_table_cp1250); break; + case ENC_WINDOWS_1251: + strptr = tvb_get_string_unichar2(scope, tvb, offset, length, charset_table_cp1251); + break; + case ENC_MAC_ROMAN: strptr = tvb_get_string_unichar2(scope, tvb, offset, length, charset_table_mac_roman); break; @@ -2817,6 +2821,14 @@ tvb_get_string_enc(wmem_allocator_t *scope, tvbuff_t *tvb, const gint offset, strptr = tvb_get_string_unichar2(scope, tvb, offset, length, charset_table_cp437); break; + case ENC_CP855: + strptr = tvb_get_string_unichar2(scope, tvb, offset, length, charset_table_cp855); + break; + + case ENC_CP866: + strptr = tvb_get_string_unichar2(scope, tvb, offset, length, charset_table_cp866); + break; + case ENC_3GPP_TS_23_038_7BITS: { gint bit_offset = offset << 3; |