> -----Original Message-----
> From: Robert Virding [mailto:rv]
> Sent: 18 January 2001 10:14
> To: Erik Johansson
> Cc: erlang-questions; Jouni.Ryno
> Subject: Re: Wishes: hex-output
> "Erik Johansson" <happi> writes:
> >----- Original Message -----
> >From: <Jouni.Ryno>
> >> If it's going to be late Christmas season, and one could make some
> >> wishes, what about hex-output for io:format
> >Yes. I have always needed this. I use ~h and ~H. With the
> patch below you
> >can do:
> >> io:format("~h 0x~H 16#~h\n", [51966, 51966, 51966]).
> >cafe 0xCAFE 16#cafe
> Seems reasonable. I'll add it. My only small qualm is that the
> coupling ~h/~H does not mean the same thing as ~w/~W and ~p/~P, but I
> suppose there is not real problem here.
> There should be probably be a matching hex-input flag for
> io:fread. I
> suppose I had better do that one as well.
NOTICE AND DISCLAIMER:
This email (including attachments) is confidential. If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents. We cannot accept liability for any breaches of
confidence arising through use of email. Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions. We will not accept responsibility for any commitments
made by our employees outside the scope of our business. We do not warrant
the accuracy or completeness of such information.
Jakob Cederlund =?iso-8859-1?Q?p=E5?= UAB <jakob> writes:
>What about ????? etc?
>Would be better to go to the functions in the OS instead.
How do you mean? The i/o libraries are Latin-1 "aware" and print all
printable characters. It is also permitted to use the letters from the
"upper half" in atom and variable names without quoting. (Of course you
can't quote variables)