Bug 13628 - stap-prep script doesn't work in pt_BR environments
Summary: stap-prep script doesn't work in pt_BR environments
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: server (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-27 12:38 UTC by Otavio Pontes
Modified: 2012-01-27 14:21 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
patch to fix the problem (213 bytes, patch)
2012-01-27 13:04 UTC, Otavio Pontes
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Otavio Pontes 2012-01-27 12:38:50 UTC
I have a hrel 6 installed and configured to use the pt_BR (Brazilian Portuguese) language.
stap-prep script uses grep to look for the string 'is not installed' and the rpm tool installed is writing this information in portuguese, so the script doesn't find the packages to be installed. I think that this problem will also happen in hrel installation in other languages,
I also tested this in fedora 16 and I got the same error.
Comment 1 Frank Ch. Eigler 2012-01-27 12:46:23 UTC
Could you try adding a LANG=C; export LANG to the top of the script,
and see if that works?  If so, please include it here as a patch and
we'd be happy to merge it right away.
Comment 2 Otavio Pontes 2012-01-27 13:01:37 UTC
Yes, it is works.
Thanks
Comment 3 Otavio Pontes 2012-01-27 13:04:50 UTC
Created attachment 6178 [details]
patch to fix the problem
Comment 4 Frank Ch. Eigler 2012-01-27 14:21:41 UTC
commit cdd7ce2