On Thursday, August 23, 2012 2:59:18 PM UTC+4, Bram Moolenaar wrote:
> Maxim Philippov wrote:
> 
> 
> 
> > On Tuesday, August 21, 2012 11:01:37 AM UTC+4, Marcin Szamotulski wrote:
> 
> > > Dear Vim_Dev,
> 
> > > 
> 
> > > I found that when I use g-, g+ to move to through undo tree the day of
> 
> > > the month always follows the month independently of the locale:
> 
> > > 
> 
> > > LC_TIME='en_GB.utf8' vim <some file with undo tree longer than just today>
> 
> > > then g- shows (after hitting changes from yesterday):
> 
> > > 
> 
> > > 1 change; before #1829  08/20 17:58:52
> 
> > > 
> 
> > > while I think it should be
> 
> > > 
> 
> > > 1 change; before #1829  20/08 17:58:52
> 
> > > 
> 
> > > This is quite confusing for me.
> 
> > > 
> 
> > > Best regards,
> 
> > > 
> 
> > > Marcin Szamotulski
> 
> > 
> 
> > Hello, Marcin and vim_dev.
> 
> > 
> 
> > I think I got a patch which resolves this issue, but I don't have so
> 
> > old undo history near at hand, so I've tested it only independently of
> 
> > a vim.  Please look at local_date_fmt.diff in attachments.
> 
> 
> 
> I'm not sure %x works everywhere.  And I prefer to use one format for
> 
> everybody.  Year/Month/Day should work.
> 

"%x is replaced by locale's appropriate date representation" as written in C 
standard. 
I have a doubt about whether it is right to hardcode 5 characters for "mm/dd" 
or "dd/mm". If it's OK to always print year that hack is unnecessary, "%x 
%H:%M:%S" format should work fine.

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui