Re: International Display String

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Tue, 30 Apr 1996 08:12:24 +0200

Hi!

"Kubat, Philip" <PKubat@charter.com> wrote:

> Scotty does not seem for format the octet strings of type
> "InternationDisplayString" (rfc1514) for a textual readable format, but
> returns the hexadecimal values of the string. It will work okay if I
> change the Syntax to "DisplayString".

> Is this a know problem and does anyone have a work around?

Scotty does only understand the base types. There is even no special
code for DisplayStrings. The reason for this is that scotty follows
the SNMPv2 specs which allow to define textual conventions (which may
include display hints). The IMHO correct solution is to define a
textual convention macro for compatibility, e.g.

InternationalDisplayString ::= TEXTUAL-CONVENTION
DISPLAY-HINT "255a"
STATUS current
DESCRIPTION
"See definition in rfc1514."
SYNTAX OCTET STRING (SIZE (0..255))

and to load it before any other definitions of this type are loaded.
(The next version will have a compat.tc file for this purpose.)

Juergen