On Wed, Dec 2, 2009 at 10:19, Mojca Miklavec wrote:
> Hello,
>
> I have submitted Slovenian Vim menu translation a while ago while I
> was still using XP (and then didn't use Windows for ages; menu
> translations don't work with Aqua Vim at all) and the encoding worked
> properly.
>
> Now I tried it on Windows 7 and discovered that the language is set to
> Slovenian_Slovenia.1250. That might be a bit weird. The native
> encoding used to be cp1250 indeed (at least in XP), but it could be
> that Windows 7 now
> tries to use utf-8 whenever possible ... but I don't really know.
I'm sorry for overflooding the mailing list. I have now figured out
that I should be able to change the language with
gvim --cmd "lang Slovenian_Slovenia.65001"
where 65001 is the windows code for UTF-8. This still means that
"system-wide encoding for applications that are not UTF-8 aware" is
cp1250 though. Just gvim is taught to use 65001 encoding. I copied the
file menu_sl_si.utf-8.vim to menu_slovenian_slovenia.65001.vim if I
wanted to be able to set that encoding at all, but gvim nevertheless
seem to send cp1250-encoded data to Windows while windows interprets
that data as if it was proper UTF-8.
This seems like a "buglet" burried deep down in the source code. I
wonder that no Czeck/Slovak/Polish users have complained so far.
Mojca
PS: possibly related problem that I had in past (sorry, I don't know
where the offcial archive is):
http://markmail.org/message/5onmtz33tfohtvfz
Subject: vim + win + utf-8 => I'm lost
Date: Aug 4, 2005 5:23:05 pm
--
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php