Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19598 - suggested enhancement of rc-scripts and policy suggestion for init.d entries
Summary: suggested enhancement of rc-scripts and policy suggestion for init.d entries
Status: RESOLVED REMIND
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-19 05:30 UTC by leon j. breedt
Modified: 2015-07-12 13:34 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
modified version of rc-scripts (rc-scripts-1.4.3.6alpha.tar.bz2,87.97 KB, application/octet-stream)
2003-04-19 05:45 UTC, leon j. breedt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description leon j. breedt 2003-04-19 05:30:12 UTC
GNU grep and gawk perform significantly faster when the locale is set to C as
opposed to a Unicode locale. This is documented at:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=82032

Forcing this in all bootup scripts makes a noticable difference in startup speed. 
I've made a modified version of rc-scripts 1.4.3.5 with this change applied, and
I will attach it for your reference.

If you wish to test it, I would suggest making the same changes to all scripts
in /etc/runlevels/boot and /etc/runlevels/default to get the full effect.

If the same improved results are observed, I would think it to make sense to
suggest that maintainers do the same in /etc/init.d scripts.

Reproducible: Always
Steps to Reproduce:
Comment 1 leon j. breedt 2003-04-19 05:45:14 UTC
Created attachment 10861 [details]
modified version of rc-scripts
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-21 15:50:31 UTC
Ugly.  Can rather just add a 'export LC_ALL="C"' to /sbin/functions.sh.
Comment 3 leon j. breedt 2003-04-21 16:21:31 UTC
also unnecessary, it seems. Gentoo doesn't set a UTF locale, so making this change is pointless unless at some time in the future it does (not something i'd recommend, breaks badly w.r.t widely expected grep behaviour, judging from Red Hat Bugzilla), since the default locale is C.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-27 13:07:01 UTC
Right, marking this as a reminder.