bug in ctype.c, and a replacement for it

D.N. Lynx Crowe@ex2207 lynx at qantel.UUCP
Tue Oct 28 05:13:24 AEST 1986


In article <2405 at j.cc.purdue.edu> rsk at j.cc.purdue.edu.UUCP (Wombat) writes:
>In article <725 at qantel.UUCP> lynx at qantel.UUCP (D.N. Lynx Crowe at ex2207) writes:
>>The character classification program "ctype.c" recently posted to the net
>>has a bug in it:  the headings for the columns are in the wrong order.
>>
>>I decided that what I wanted was a complete count of all characters, not
                 ^^^^^^^^^^^^^
>>just those below octal 200, so I put together a replacement for it, ccount.c,
>>which I've posted to net.sources.
>
>Four things; first off, it is common courtesy to report such bugs in
>posted software to the author *first*, thus giving that author the
>opportunity to correct them in whatever way the author feels best.
>There are exceptions--for instance, truly nasty bugs in important
>pieces of software.  This is not one of those cases.
>
>Secondly, you do not specify what the "correct" order would be, or
>why the given order is "wrong".

(The "correct" order is a matter of what the user decides is "right".)

>
>Thirdly, if you had bothered to correspond with the author (me), you
>would have discovered that the author had already received a number
>of suggestions about the program, one of which was to add the codes
>above octal 200 [optionally].
>
>Finally, even though you used nearly all my code in your program, you
>make no mention of that in the source.  Fine--you don't *have* to;
>but if I wrote a program that whose concept was completely derived from
>another, and whose source code was almost completely taken from another,
>I'd acknowledge the original author.  I think most folks on Usenet
>would do the same.  I'm amazed and appalled at your actions in this matter.
>
>-- 
>Rich Kulawiec, j.cc.purdue.edu!rsk, rsk at j.cc.purdue.edu

Well, thanks for the flames ...

By the time I'd gotten around to trying the code you'd posted I had lost
a return path to you, this makes it difficult to correspond.

As you may, or may not, have noticed, the code posted was what I found
that I needed, not intended to be "general", and posted as a quick fix
to what I got from the net.  Yes, it is a modified version of your code,
an I do apologize for not having attributed it to you.  That was an
unfortunate oversight which I regret occurred.

As to pointing out the error in your posting, that was partly the intent
of my posting.  If I had had your return path I would have indeed sent you
a note first.

Perhaps the next time I encounter bugs in posted code I will simply keep the
corrections to myself and avoid the flames.

-- 
----------------------------------------------------------
D.N. Lynx Crowe {dual, hplabs, lll-crg, ptsfa}!qantel!lynx
----------------------------------------------------------
"Just say 'No' -- to Government"
----------------------------------------------------------



More information about the Comp.sources.bugs mailing list