Michael Soyka wrote:

> When the DIRECTX feature is enabled at compilation, the setting of option 
> 'renderoptions' to "type:directx" causes gvim to load "dwrite.dll" which is 
> not available from Microsoft for Windows XP systems.  The load attempt 
> generates error E474 which causes the test script "opt_test.vim" to abort 
> which in turn prevents the script from running the remaining tests (the 
> file "opt_test.vim" is auto-generated by Make_ming.mak).  
> 
> As I see it, there are two options: either do not test 'renderoptions' on 
> Windows XP or surround the "set" commands with try/catch/endtry and ignore 
> error E474 on Windows XP.  In either case, the test must know it is running 
> on Windows XP and I don't think that is easy to determine in a vim script 
> (that's not say there aren't ways).  In addition, since the test file 
> "opt_test.vim" is auto-generated, option 'renderoptions' would have to be 
> special-cased in "gen_opt_test.vim".
> 
> I don't know how the community prefers to address this and so I am just 
> reporting the problem and not proposing a patch.  However, I am willing to 
> work on this if a plan-of-attack can be agreed-upon.  

We do have the platform information internally.  I suppose it can be
useful to know the Windows version for several things.  Let me add the
windowsversion() function and use it in the options test.  Please verify
this works on Windows XP.

-- 
    [clop clop]
MORTICIAN:  Who's that then?
CUSTOMER:   I don't know.
MORTICIAN:  Must be a king.
CUSTOMER:   Why?
MORTICIAN:  He hasn't got shit all over him.
                                  The Quest for the Holy Grail (Monty Python)

 /// 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201912271250.xBRCo6vC006423%40masaka.moolenaar.net.

Raspunde prin e-mail lui