Ethereal-dev: Re: [ethereal-dev] String types

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Mon, 1 May 2000 10:00:49 -0700
> I am still busy with developing a dissector and I ran into a "small" problem.
> There are not only 8 bits character strings, but also 16 bit characters
> 
> I don't know if GLib supports these character types, or that Ethereal should 
> support these itself,

Given that

	1) Ethereal includes an SMB dissector

and

	2) SMB includes Unicode strings

and

	3) Unicode strings consist of 16-bit characters

Ethereal should definitely support, even if it can't use glib routines
to manipulate them.

> I suppose FT_STRING should become FT_STRING8 and FT_STRING16

Are your strings Unicode strings, or some other character set?  I'd be
inclined to call them FT_UNICODE if they're just Unicode (and perhaps
change FT_STRING to FT_ASCII, although, in practice, the 8-bit character
strings might be in other 8-bit character sets, e.g. various other ISO
646 character sets, or ASCII supersets such as the ISO 8859/n character
sets, or multi-byte character ASCII supersets such as the EUC character
sets, or...).