hex2dec parsing for Inets

Luke Gorrie <>
Tue Sep 21 07:59:20 CEST 1999


Bug report for Inets in httpd_util code:

hex2dec(X) when X>=$0,X=<$9 -> X-$0;
hex2dec($A) -> 10;
hex2dec($B) -> 11;
hex2dec($C) -> 12;
hex2dec($D) -> 13;
hex2dec($E) -> 14;
hex2dec($F) -> 15.

Lower-case should be handled too for compatibility (eg. with Lynx). I
added a "hex2dec(C) when C >= $a, C =< $f -> 10 + C - $a." clause to
the same code in 'pico' to make lynx posts work.

What's a better place to send this sort of mail, to the email
addresses listed in the source files? I've done that in the past but
I'm not sure of the convention since those addresses were put there in
pre-opensource days.

Cheers,
Luke





More information about the erlang-questions mailing list