[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#217152: apt: [i18n] confirmation prompt does not work with locales!=C



On Thu, Oct 23, 2003 at 12:04:36AM +0200, Sylvain Pasche wrote:

> When you remove essential packages, a prompt asks you to type:
> 
> You are about to do something potentially harmful
> To continue type in the phrase 'Yes, do as I say!'
> 
> When I use french localization: I get the following:
> 
> Vous êtes sur le point de faire quelque chose de potentiellement dangereux
> Pour continuer, tapez la phrase « Oui, faites ce que je vous dis ! »
> 
> If I type exactly "Oui, faites ce que je vous dis !" (taken from fr.po), 
> apt aborts. However, when I unset LC_ALL and LANG, and I type the english 
> response, all is ok. 
> I also tried to type "Yes, do as I say!" with the french prompt, but it does
> not work either.

The code is very simplistic; it just does a strcmp() on what was typed and
the string returned from gettext.  Are you sure that you are typing it
exactly as it appears in fr.po (byte for byte)?

-- 
 - mdz



Reply to: