On 10/01/2011 03:04 PM, Jörg Sommer wrote: > the environment variable LC_ALL should override the setting of the LANG > variable, but cpm doesn't behave so.
> > % env -i HOME=$HOME LANG=de_DE.UTF-8 LC_ALL=C /usr/bin/cpm > Ausführung ohne Root Privilegien: ja Hello, I have now had a chance to look at your issue. This bug relates to the interaction between gettext and CPM's security functions which clear the environment. These functions clear the LC_ALL env (and indeed all vars except for a small whitelist) before initializing gettext, causing the misfeature you are seeing. Although I am not aware of any security implications of moving the gettext call before the security call, I am still reluctant to do so, therefore I have added code to copy the LC_ALL and LC_MESSAGES variables to the clean environment. This code will be included in the next release of CPM and should solve this bug. Regards, Kacper
signature.asc
Description: OpenPGP digital signature