diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-09-20 17:42:27 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-09-20 17:42:27 +0000 |
commit | 9343f33984457fec88ef0d9ab63c3c54d1d7ed26 (patch) | |
tree | 9ba123277a88c2e2865971e7bf95a6bc50b0c789 | |
parent | b845c692ed2b073aba1f53ea9eb9854b4bdaedc6 (diff) |
Add an ENC_ASCII; right now, it's the same as ENC_UTF_8, but it should
eventually cause all bytes with the 8th bit set to be displayed as error
indications.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39064 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | epan/proto.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/epan/proto.h b/epan/proto.h index 0394e21344..98ef9c522f 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -238,10 +238,21 @@ typedef struct _protocol protocol_t; * * The value for ENC_EBCDIC is subject to change in a future release (or * to replacement with multiple values for different flavors of EBCDIC). - * Additional encodings will also be provided. + * + * We currently add some additional encodings, for various ASCII-based + * encodings, but use the same value as ENC_UTF_8, for now, so that we + * can mark the appropriate encoding. Ultimately, we should handle + * those encodings by mapping them to UTF-8 for display; for ASCII, + * all bytes with the 8th bit set should be mapped to some "this is + * not a valid character" glyph, as ENC_ASCII should mean "this is + * ASCII, not some extended variant thereof". Perhaps we should also + * map control characters to the Unicode glyphs showing the name of + * the control character in small caps, diagonally. (Unfortunately, + * those only exist for C0, not C1.) */ #define ENC_CHARENCODING_MASK 0x7FFFFFFE /* mask out byte-order bits */ #define ENC_UTF_8 0x00000000 +#define ENC_ASCII 0x00000000 #define ENC_EBCDIC 0x0EBCD1C0 /* |