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

Bug#536476: install-info: The DIR file is generated translated in certain situations



On Fri, Jul 10, 2009 at 04:16:47PM +0200, Norbert Preining wrote:
> On Fr, 10 Jul 2009, Yavor Doganov wrote:
> > invoked by the dpkg trigger, it rebuilds the dir file in Russian
> > (because there are no Bulgarian and Macedonian texinfo translations).
> 
> I don't know what you mean? The dir file is recreated from all installed
> info files using the current system locale.

The system locale is bg_BG.UTF-8, but the dir file is recreated in Russian.
I do upgrades with "sudo aptitude".

> Does it mean it uses the locale of the *user* account?

Yes.  If I grant sudo rights to a German speaker who has set de:nl as 
value of the LANGUAGE variable, and he does an upgrade involving 
triggering install-info, the dir file will be recreated in German 
(untested, but I can try if you want).

> But how could it be triggered or even write from a user account?

It is from my user account with sudo.  But even if I don't use sudo, 
creating the file in Bulgarian is wrong in my case.

> If it is bg_BG.UTF-8 the file should be saved in UTF-8. Can you 
> confirm that?

No, I confirm that the system locale is bg_BG.UTF-8 and at the very 
least the dir file should respect that (although I think that's still 
rather presumptuous).  It is wrong that it happens to be rebuilt in 
Russian, which is only my personal preference as a user.



Reply to: