On 20/08/08 07:14, Bram Moolenaar wrote: > 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? Best regards, Tony. -- I'm defending her honor, which is more than she ever did. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
