Kaixo!

On Wed, Jul 12, 2000 at 05:28:06PM +0400, Guillaume Rousse wrote:
> This macro is great, but it uses current locales, so it gives me french
> date in my spec file.
> Having also english locales installed, i tried to change this, but even
> unsetting LANG and LANGUAGE environment variables doesn't change
> anything. What is the correct way to do this ?

LC_CTIME (or LC_ALL) is the variable to look at.

> > bind ,ch to add a new Changelog
> > 
> > --=-=-=
> > map ,ch /^%changelog/<C-m>o* <C-R>=strftime("%a %b %d %Y")<C-m> 

change it to:

map ,ch /^%changelog/<C-m>o* <C-R>=system("LC_ALL=C date +'%a %b %d %Y'")<C-m>

and it will work correctly evne on non English locales.

-- 
Ki �a vos v�ye b�n,
Pablo Saratxaga

http://www.srtxg.easynet.be/            PGP Key available, key ID: 0x8F0E4975

Reply via email to