[Vim-latex-devel] bug in compiler/tex.vim
Brought to you by:
srinathava,
tmaas
From: PAN S. <Shi...@ne...> - 2003-07-23 12:48:57
|
I did downloaded each version of vim-latex suite, but I cannot sucessfully installing it in Vim 6.2 without problem. There will be lots of run-time errors reported when loading scripts in latex-suite. -- Finally I realized that there must be something wrong and have to dive into the .vim source code myself. The problem is found at compiler/tex.vim, Line 78-81, Tex_IgnoredWarnings You defined a character which looks like a reversed `!' as the delimeter of global var g:Tex_IgnoredWarnings, but this character will definetely cause problem on many systems (mainly non-latin systems such as Chinese, Japanese and Korean). On my system, any ASCII character with value larger than 0x9f will be treated as an indication of `double character', and any ASCII character between 0x80 and 0x9f will be ignored if it is not following a character >0x9f. In another word, characters with highest bit `1' will be treated specially and should be reserved only for special use. Since you used a `reversed !' as delimeter of global var, which has an ASCII value of 0xa1 (10100001), this will be treated as an indication of `double character' on my system, and the next character, a single quotation mark, will be combined with the 0xa1, which forms 0xa127, then the VIM cannot identify the end of the string, thus vim will always complain error compling the compiler/tex.vim -- Possible solutions for this are: 1. avoid using special character, change to another character, which belongs to standard 7-bit ASCII range, i.e. between 0x20 and 0x7f 2. or if you do want to keep 0xa1 as the delimeter, append a chacter so that it won't eat up the single quotationi mark after that, and letting vim compiling this file sucessfully (not sure if it runs okay, but should compile ok, and uses can change this in `texrc'). 3. texrc should be altered as well... -- Thanks. Pan Shizhu |