Fix handling of EBCDIC string fields.
authorGuy Harris <guy@alum.mit.edu>
Mon, 12 Dec 2016 05:49:14 +0000 (21:49 -0800)
committerGuy Harris <guy@alum.mit.edu>
Mon, 12 Dec 2016 05:49:50 +0000 (05:49 +0000)
commit4d47c9a84144510a33747801cf4ef65f1b3da422
tree8b6f3a7651c209b7ec634f78292b432b7f6cda66
parent6bc65121287e585d06755b3406c571ad9ba4d766
Fix handling of EBCDIC string fields.

Have a routine that takes a 256-element translation table and uses it to
map various flavors of EBCDIC to Unicode.  Have separate translation
tables for "common" EBCDIC (everything that's the same in all EBCDIC
code pages that include the original EBCDIC characters) and EBCDIC code
page 037.  Add ENC_EBCDIC_CP037 for code page 037.

Change-Id: Ia882b3c0abef9e30eb54cd47396e6fa0d6342044
Reviewed-on: https://code.wireshark.org/review/19212
Reviewed-by: Guy Harris <guy@alum.mit.edu>
epan/charsets.c
epan/charsets.h
epan/proto.h
epan/tvbuff.c