Red Hat Bugzilla – Bug 64910
unexpected locale settings break rpm scriptlets
Last modified: 2008-05-01 11:38:02 EDT
Description of Problem:
rpm uses the current locale to do shell globbing giving unexpected results.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Produce spec file with an expression like the following in %files section
intended to pick up the README etc files but miss Makefile...
Have your own locale settings set normally - ie for me
speedy ~ 254> locale
2. Build package - ie rpmbuild -ba package.spec
Watch rpm put pretty much every file in the top directory into the
documentation dir - whether they start with caps or not
Suggest you force LC_COLLATE (and maybe others?) to C within rpm
Yup. I choose to view the (ahem) problem as a build
system configuration feature, outside the scope of rpm,
as there's no way I can get the locale correct for all
Heck, you're in en_GB and glob(3) is broke :-)
Was going to comment that shells on teh systems appeared to be working
round this, but more detailed checking shows *some* shells do
as expected, and others don't.
I'm pining for the days of real ASCII and sod the locales.