On Wed, Jun 07, 2006 at 07:12:11AM +0200, Christian Perrier wrote: > > I will ask confirmation to I18N people and assuming it is OK, > > At least one is subscribed here to menu's PTS..:-)
So convenient! So you confirm /etc/default/locale is somehow the official system-wide locale for the system ? > > I propose to change menu so that: > > > > 1) If it run as a user it use the current locale > > 2) if it run as root it check /etc/default/locale > > 2.1) if it exist it use the result > > 2.2) else it use the current locale. > > > I would suggest to source /etc/default/locale if it exists before > running update-menus, if it is run by root. > > This will will only contain variable assignments, so sourcing it seems > to be the safest option. Well but update-menus is a C++ program, so sourcing it is not very practical. Maybe I can do the C++ equivalent of lang=$(sh -c ". /etc/default/locale && echo \$LANG") but it will be slow. Maybe I could just grep for /^LANG=/ instead ? Cheers, -- Bill. <[EMAIL PROTECTED]> Imagine a large red swirl here. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]