Tony Mechelynck wrote:

> >> E670: Mix of help file encodings within a language:
> >> /usr/local/share/vim/vimfiles/doc/hicolors.txt
> >>
> >> The error is given by the :helptags command.
> >>
> >> After investigation, it appears that all the *.txt files in
> >> $VIM/vimfiles/doc are in UTF-8 (or can be read as UTF-8), which is my
> >> current 'encoding'; the file which sorts before the one in the message,
> >> however, is the only one with a BOM (the file has just been created by
> >> UseVimball). (The files in that directory are Rndm.txt, hicolors.txt,
> >> hicolorshelp.txt, a softlink to matchit.txt, and a tags file.) It also
> >> appears that the error has truncated the tags file to zero-length.
> >>
> >> I removed the BOM, and then ":helptags $VIM/vimfiles/doc" generated a
> >> tags file with no error.
> >
> > Sounds like a minor problem with vimball.
> 
> It may be due to my settings, which include ":setglobal bomb". 
> (enc=utf-8 would also be set if it weren't already the GTK2 default.)
> 
> >
> >> Bug or feature?
> >> 1. Why should it be an error to have various help files from different
> >> sources in $VIM/vimfiles/doc, some in UTF-8 with BOM, and others in
> >> US-ASCII with of course no BOM but otherwise readable as UTF-8?
> >
> > Because the tags file can only be in one encoding.
> 
> But, is UTF-8 with BOM different from UTF-8 without BOM? And how does 
> ":helptags" detect the encoding used by a file?

Right, that should work.  But ASCII is not utf-8, and I think (without
looking at the code) that ASCII files default to latin1 encoding.

-- 
Are leaders born or made?  And if they're made, can we return them under
warranty?
                                (Scott Adams - The Dilbert principle)

 /// 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.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui