bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #29820] with collating element in grep-2.6.3.


From: Norihirio Tanaka
Subject: [bug #29820] with collating element in grep-2.6.3.
Date: Fri, 07 May 2010 12:21:15 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)

URL:
  <http://savannah.gnu.org/bugs/?29820>

                 Summary:  with collating element in grep-2.6.3.
                 Project: grep
            Submitted by: noritnk
            Submitted on: 2010年05月07日 12時21分14秒
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

First, error is returned with collating element in grep-2.6.3.

$ /bin/echo achb | LC_ALL=es_US.iso88591 src/grep 'a[[.ch.]]b'
src/grep: Invalid collation character
$

This message is generated at `re_compile_pattern',
but we don't use GNU regex for for this searching.
Therefore next I comment out dfasearch.c:130-162, rebuild and re-run.

$ /bin/echo achb | LC_ALL=en_US.iso88591 src/grep 'a[[.ch.]]*b'
$
(expected `achb')

$ /bin/echo achb | LC_ALL=en_US.UTF-8 src/grep 'a[[.ch.]]b'
Segmentation fault (core dumped)
(expected compile-error)
$



Configure options: ./configure --with-included-regex

$ LC_ALL=C src/grep --version
GNU grep 2.6.3

Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29820>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]