On 19/06/08 21:46, björn wrote:
[...]
> Bram, thanks for the answer.
>
> This presents a problem with scripts that do not use :scriptencoding
> like the HTML plugin.  It (I'm only using it as an example since its
> the only problem I'm aware of) defines menu items whose titles contain
> characters with the 8th bit set (in latin-1 encoding).  With
> 'enc=utf-8' these characters are not converted to utf-8 so when
> gui_mch_add_menu_item() is called MacVim chokes because it is fed menu
> titles with invalid utf-8 strings (since they are in fact latin-1).  I
> can work around this problem by falling back to using latin-1 encoding
> when the utf-8 is invalid, but this doesn't seem like a good solution.
>
> I tried understanding how the other GUI ports deal with this issue in
> gui_mch_add_menu_item() but they all seem to assume that the value of
> 'enc' is respected.  I don't know why they don't fail since I'm not
> familiar with the APIs used on those platforms.
>
> Have you got any suggestions how to deal with scripts that fail to set
> :scriptencoding?  It seems to me this is a real problem since it makes
> the encoding of (e.g.) menu titles unpredictable, and its thus up to
> the OS APIs to deal with the issue (not very reliable since each OS
> behaves differently).
>
> Björn

Are you sure you got the latest versions of the plugins? The plugins are 
runtime files, and as such you must update them separately -- most of 
their upgrades are not the object of a patch.

I just did

        :0verbose vimgrep /[EMAIL PROTECTED]/ $VIMRUNTIME/**/*.vim

(where ~@ is obtained by hitting Ctrl-V followed by x80 and ÿ by hitting 
Ctrl-V followed by xff) and I didn't find any "bad" results. Most of the 
results I found were either comments, irrelevant statements, or keymaps 
or ":menutrans" commands having either a ":scriptencoding" command at 
the top, or an encoding in the filename, or both.

Can you tell me exactly in which script (of which date) you find that 
misbehaving menu statement (use ":verbose menu" followed by the menu 
name to see where it was set), so I can check the mod-date mentioned at 
the top of that script on my system?


Best regards,
Tony.
-- 
There was a young girl from Hong Kong
Whose cervical cap was a gong.
        She said with a yell,
        As a shot rang her bell,
"I'll give you a ding for a dong!"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui