After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 306355 - grep path needs to be customized
grep path needs to be customized
Status: VERIFIED FIXED
Product: gnome-utils
Classification: Deprecated
Component: gsearchtool
unspecified
Other opensolaris
: Normal normal
: ---
Assigned To: gnome-utils Maintainers
gnome-utils Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-03 08:38 UTC by Takao Fujiwara
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for configure.in, gsearchtool/Makefile.am and gsearchtool/gsearchtool.c (2.46 KB, patch)
2005-06-03 08:41 UTC, Takao Fujiwara
none Details | Review
Proposed Patch (5.02 KB, patch)
2005-06-06 05:24 UTC, Dennis Cranston
none Details | Review

Description Takao Fujiwara 2005-06-03 08:38:18 UTC
gnome-search-tool uses /usr/bin/grep internally.

But on Solaris, /usr/bin/grep does not support UTF-8 so we need to customize the
path. Otherwise, gnome-search-tool cannot find files on Solaris.

I'm attaching the patch.
Comment 1 Takao Fujiwara 2005-06-03 08:41:41 UTC
Created attachment 47182 [details] [review]
patch for configure.in, gsearchtool/Makefile.am and gsearchtool/gsearchtool.c

I attached the patch. The patch can switch the grep path with the configure
option.
Comment 2 Dennis Cranston 2005-06-03 16:34:22 UTC
Gnome-search-tool does not use /usr/bin/grep internally.  It uses the first grep
command found in the user's $PATH.  Wouldn't it be easier to change PATH on
Solaris so it uses the UTF-8 compatible version of grep by default?
Comment 3 Takao Fujiwara 2005-06-04 01:04:48 UTC
Sorry, my description was not accurate.

We hardly change the default $PATH. It would keep using /usr/bin but
unfortunatelly some commands don't support UTF-8 under /usr/bin on Solaris. From
the point of the archtectures and risk managements, we would like to customize
the path of grep only. /usr/xpg4/bin/grep supports UTF-8 on Solaris. 

Could you integrate this fix for Solaris?
In the current plan, /usr/bin/grep on Solaris will support EUC only.
Comment 4 Dennis Cranston 2005-06-06 05:24:55 UTC
Created attachment 47300 [details] [review]
Proposed Patch

I noticed your patch was against an old version of gnome-search-tool (2.6). 
The current stable version is at 2.10.	;-)

I have ported your patch to CVS HEAD.  Can you take a look at it before I apply
it to CVS?  Thanks.
Comment 5 Takao Fujiwara 2005-06-06 08:57:19 UTC
Could you change the following line?

< +		    g_strdup_printf ("'!' -type p -exec %s -i -c '%s' {} \\;", GREP_COMMAND);
> +		    g_strdup_printf ("'!' -type p -exec %s -i -c '%%s' {} \\;", GREP_COMMAND);

I confirmed other parts are no problem.

Thanks for your modifying the patch.
Comment 6 Dennis Cranston 2005-06-06 15:13:43 UTC
Thanks.  Patch applied to CVS HEAD.