From ce3187ac2f3f71f348fd7d4694b49c44f42337f3 Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 18 Oct 2005 17:59:17 +0000 Subject: 2005-10-18 Frank Ch. Eigler PR 1477. * main.cxx (main): Set PATH and LC_ALL, so * buildrun.cxx (compile_pass, run_pass): ... and ... * translate.cxx (emit_symbol_data): ... don't have to. --- translate.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'translate.cxx') diff --git a/translate.cxx b/translate.cxx index 5e9621cc..1d7ed7ac 100644 --- a/translate.cxx +++ b/translate.cxx @@ -2381,13 +2381,13 @@ emit_symbol_data (systemtap_session& s) // symbols only), a task that we defer to grep(1) and sort(1). It // may be useful to cache the symbols.sorted file, perhaps indexed // by md5sum(/proc/modules), but let's not until this simple method - // proves too costly. All that LC_ALL=C stuff is there to avoid the + // proves too costly. LC_ALL=C is already set to avoid the // excessive penalty of i18n code in some glibc/coreutils versions. string sorted_kallsyms = s.tmpdir + "/symbols.sorted"; - string sortcmd = "/bin/env LC_ALL=C /bin/grep \" [tT] \" /proc/kallsyms | "; + string sortcmd = "grep \" [tT] \" /proc/kallsyms | "; - sortcmd += "/bin/env LC_ALL=C /bin/sort "; + sortcmd += "sort "; #if __LP64__ sortcmd += "-k 1,16 "; #else -- cgit