Hello Helge,

On 2007-12-25 11:01 +0100, Helge Kreutzmann wrote:

> Hello Sven,
> On Tue, Dec 25, 2007 at 10:47:44AM +0100, Sven Joachim wrote:
>> Hi Helge,
>> 
>> On 2007-12-25 10:32 +0100, Helge Kreutzmann wrote:
>> 
>> > -    if ! update-alternatives --display asclock | grep '^No alternatives' 
>> > > /dev/null ; then
>> > +    if ! env LANG=C update-alternatives --display asclock | grep '^No 
>> > alternatives' > /dev/null ; then
>>                 ^^^^^^
>> You need to use LC_ALL=C here, because LC_MESSAGES or LC_ALL could have
>> been set in the environment.
>
> thanks for the information, I'll use this in the next revision of the
> patch if necessary, but this way it works at least on my rather fresh
> install of Debian. 

Because you have only LANG set, but not LC_MESSAGES or LC_ALL:

,----
| $ echo $LANG
| de_DE.UTF-8
| $ /usr/sbin/update-alternatives --display garbage
| Keine Alternativen für garbage.
| $ env LANG=C /usr/sbin/update-alternatives --display garbage
| No alternatives for garbage.
| $ export LC_MESSAGES=de_DE.UTF-8
| $ env LANG=C /usr/sbin/update-alternatives --display garbage
| Keine Alternativen f?r garbage.
| $ export LC_ALL=de_DE.UTF-8
| $ env LANG=C /usr/sbin/update-alternatives --display garbage
| Keine Alternativen für garbage.
| $ env LC_ALL=C /usr/sbin/update-alternatives --display garbage
| No alternatives for garbage.
| $
`----

See locale(7) for detailed explanations.

Cheers,
       Sven



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to