Ron Aaron wrote:

> I have recently started editing files with a '.wiki' extension, and
> rather than getting the 'wikipedia' filetype, they pick up  the
> 'flexwiki' type.  That's not the problem.
> 
> The problem is that the 'flexwiki' filetype handler sets "bomb",
> resulting in extra characters at the front of my utf8 files -- this
> has caused problems with other software which reads those files (I
> never have 'bomb' set).
> 
> Scanning the ftplugins, it seems 'flexwiki' is the only one which sets
> 'bomb'.  Is it an ok thing for it to do?  Also, why is "flexwiki" the
> handler, when wikipedia is probably the most widely used wiki?  But
> that's a quibble.

Setting 'bomb' is weird.  Unless the filetype requires the file to be
written in utf-8 for the file to be working properly.

George, is setting 'bomb' really required?  If so, how can we avoid that
this happens when the flexwiki filetype is detected when it's actually
another kind of file?

As a guard, 'bomb' should only be set when 'encoding' is utf-8.
This applies to 'fileencoding' as well.

At the time of writing the www.flexwiki.com site was not available, thus
I could not check any specification there.

-- 
A)bort, R)etry, P)lease don't bother me again

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.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

Raspunde prin e-mail lui