home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / utils / bug / 2068 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.3 KB  |  50 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!stanford.edu!agate!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!bredex.DE!nico
  3. From: nico@bredex.DE (Nico Josuttis)
  4. Subject: REGEX: fatal BUG in regex.c
  5. Message-ID: <9211161332.AA11874@bredex.de>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 16 Nov 1992 15:32:03 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 37
  12.  
  13. Hi folks,
  14. i found a fatal bug using ranges and translate tables
  15. (regex 0.11).
  16.  
  17. Scenario:
  18.   Pattern: [A-A]
  19.   String:  A
  20.   => OK, (match value: 1)
  21.  
  22.   BUT: Pattern: [a-a]
  23.        String:  a
  24.        => ERROR, NO MATCH
  25.  
  26. That happens when i use the translate table "upcase".
  27.  
  28. IMHO the bug is the following:
  29. In regex.c in compile_range() in line 2181:
  30.     PATFETCH (range_end);
  31. must be
  32.     PATFETCH_RAW (range_end);
  33. because otherwise a translated char gets compared with
  34. a non translated char.
  35. In my example this processes the range [a-A], which is empty.
  36.  
  37. Hope this helps.
  38.  
  39. BTW, is there a list with any other open bugs ?
  40.  
  41. --------
  42. Nico
  43.                                  address: BREDEX GmbH
  44. email:   nico@bredex.de                   Nicolai Josuttis
  45.                                           Kastanienallee 2a 
  46. phone:   +49 531 75480                    D-3300 Braunschweig
  47. fax:     +49 531 796358                   Germany
  48. --------
  49.  
  50.