Ken Takata wrote:

> 2014/8/17 Sun 0:34:54 UTC+9 Bram Moolenaar wrote:
> > Patch 7.4.406
> > Problem:    Test 72 and 100 fail on MS-Windows.
> > Solution:   Set fileformat to unix in the tests. (Taro Muraoka)
> > Files:          src/testdir/test72.in, src/testdir/test100.in
> 
> Even after this patch, test72 still sometimes fails (about 5~10%).
> 
> E.g.:
> https://ci.appveyor.com/project/k-takata/vim-ci/build/72#L805
> 810  28,31c28,31
> 811  < bar apr
> 812  < apr
> 813  < foo mar
> 814  < mar
> 815  ---
> 816  > bar apr
> 817  > apr
> 818  > foo mar
> 819  > mar
> 
> The line endings of test72.out is normally CRLF on Windows, but sometimes
> only the last 4 lines become LF. It seems that the following part in the
> test72.in causes the problem:
> 
> :" With encryption, cryptmethod=blowfish2
> :e! Xtestfile
> rubbish
> :set undofile cm=blowfish2
> 
> This part opens the Xtestfile which is encrypted with blowfish with a wrong
> key "rubbish". Of cause, the contents of the file are broken, but sometimes
> the file might be ended with LF. Then 'fileformat' will be set to unix.
> 'ff' should be always the default value in test72.
> 
> Attached patch fixes this.
> # I removed the line ':set ff=unix' because it didn't have an effect.
> # After the next line (':e! Xtestfile'), 'ff' is set to the default value.

Thanks!

-- 
Q:  Why do ducks have flat feet?
A:  To stamp out forest fires.

Q:  Why do elephants have flat feet?
A:  To stamp out flaming ducks.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui