Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site osu-eddie.UUCP Path: utzoo!watmath!clyde!cbosgd!apr!osu-eddie!paul From: paul@osu-eddie.UUCP (Paul Placeway) Newsgroups: net.sources.bugs Subject: Bug (+fix) in phoneme code Message-ID: <221@osu-eddie.UUCP> Date: Tue, 2-Apr-85 23:57:31 EST Article-I.D.: osu-eddi.221 Posted: Tue Apr 2 23:57:31 1985 Date-Received: Wed, 3-Apr-85 07:59:58 EST Distribution: net Organization: Ohio State Univ., CIS Dept., Cols, Oh. Lines: 27 *** REPLACE THIS LINE WITH YOUR MASSAGE *** DESCRIPTION: The recent english to phonetic translator has a bug in the left rule matcher that causes it to ignore the last character of the left rule. REPEAT BY: Compile the code. Give it the word "llama". If it returns "AEmAX", you have the bug; if it returns "lAEmAX", you don't. FIX: Change the for loop in the routine "leftmatch" in the file phoneme.c from: for (; pat != pattern; pat--) to for (; pat >= pattern; pat--) /* PWP - BUG, was "pat != pattern" */ cheers, Paul W. Placeway The Ohio State University (UUCP: ...!cbosgd!osu-eddie!paul) (CSNet: paul@ohio-state) (ARPA: paul%ohio-state.csnet@CSNET-RELAY)