On 09/08/2016 01:58 PM, Matteo Sisti Sette wrote:
Sorry, the right url is:
http://matteosistisette.com/test/grep_bug/profile.php.gz

Whether or not the original description in the ubuntu bug was clear enough, this test case should be, right?

Yes, it's a clear test case. And it works for me with grep 2.25 (see attached transcript). So it appears that your particular bug (whatever it was) is fixed.

If you want 'grep' to output arbitrary binary data, you need to use grep's -a option. That has been true for many years (though the details about what constitutes "binary" have changed). I.e., the -a option is the only way to avoid that "Binary file matches" message in all cases.

$ grep function profile.php
require_once(DIR . '/includes/functions_user.php');
        require_once(DIR . '/includes/functions_databuild.php');
        require_once(DIR . '/includes/functions_databuild.php');
        require_once(DIR . '/includes/functions_databuild.php');
        unset($tempcustom); // from functions_user.php?
        require_once(DIR . '/includes/functions_misc.php');
        require_once(DIR . '/includes/functions_misc.php');
        require_once(DIR . '/includes/functions_misc.php');
        require_once(DIR . '/includes/functions_misc.php');
        require_once(DIR . '/includes/functions_misc.php');
                require_once(DIR . '/includes/functions_wysiwyg.php');
                require_once(DIR . '/includes/functions_newpost.php');
        require_once(DIR . '/includes/functions_newpost.php');
        require_once(DIR . '/includes/functions_editor.php');
        require_once(DIR . '/includes/functions_file.php');
                $show['sigpic_url'] = (ini_get('allow_url_fopen') != 0 OR 
function_exists('curl_init'));
        require_once(DIR . '/includes/functions_file.php');
                $show['customavatar_url'] = (ini_get('allow_url_fopen') != 0 OR 
function_exists('curl_init'));
                $show['profilepic_url'] = (ini_get('allow_url_fopen') != 0 OR 
function_exists('curl_init'));
        require_once(DIR . '/includes/functions_file.php');
        require_once(DIR . '/includes/functions_album.php');
$ grep --version
grep (GNU grep) 2.25
Copyright (C) 2016 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.

Written by Mike Haertel and others, see 
<http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Reply via email to