On 20/07/09 11:33, Takao Fujiwara wrote:
>
> (07/19/09 05:25), Bram Moolenaar-san wrote:
>> Can you please explain for each entry why it should be added?
>
> +    {"ms932",                IDX_CP932},
>
> MS932 is added in glibc/iconvdata/gconv-modules
[...]

Won't Vim +iconv accept any charset known by your installed version of 
iconv, even charsets not compiled into Vim? You can list them (at least 
if you have a posix-compliant iconv executable in addition to the iconv 
shared library) by means of "iconv -l" (pipe the output into more or 
less since there are a lot of them) or maybe, in Vim, ":new | 0r !iconv -l".

Most of the charsets you want are already accepted by my iconv version; 
the exceptions are two Sun encodings (with no equivalents that I can 
see) and cswindows31j for cswindows-31j, ms_kanji for ms-kanji.

I'm appending a small file containing a paragraph from jp.wikipedia.org 
which I saved in "cseucpkdfmtjapanese" encoding in gvim 7.2.234 after 
removing HTML formatting. I suppose you could do

        :view ++enc=cseucpkdfmtjapanese pkdfmt.txt

in gvim to see if it is proper Japanese. In any case it is not UTF-8, 
and it looks like gibberish in Latin1, but the above ex-command gives me 
what "looks" to me (the illiterate Westerner) as Japanese writing.


Personally, I would rather trust iconv than your statement that, let's 
say, "shift-jisx0213 is not cp932 exactly but making it an alias would 
help".

FWIW, this is what I get in answer to "iconv --version":
> iconv (GNU libc) 2.9
> Copyright (C) 2008 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> Written by Ulrich Drepper.


Best regards,
Tony.
-- 
"Life would be much simpler and things would get done much faster if it
weren't for other people"
                -- Blore

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

¥¦¥£¥­¥Ú¥Ç¥£¥¢¤Ï¥ª¡¼¥×¥ó¥³¥ó¥Æ¥ó¥È¤ÎÉ´²Ê»öŵ¤Ç¤¹¡£´ðËÜÊý¿Ë¤Ë»¿Æ±¤·¤Æ¤¤¤¿¤À¤±¤ë¤Ê¤é¡¢Ã¯¤Ç¤âµ­»ö¤òÊÔ½¸¤·¤¿¤ê¿·¤·¤¯ºîÀ®¤·¤¿¤ê¤Ç¤­¤Þ¤¹¡£¥¬¥¤¥É¥Ö¥Ã¥¯¤òÆÉ¤ó¤Ç¤«¤é¡¢¥µ¥ó¥É¥Ü¥Ã¥¯¥¹¤ÇÎý½¬¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£¼ÁÌä¤ÏÍøÍÑ°ÆÆâ¤Ç¤É¤¦¤¾¡£¸½ºß¡¢¥¦¥£¥­¥Ú¥Ç¥£¥¢ÆüËܸìÈǤˤÏÌó
 602,722 Ëܤε­»ö¤¬¤¢¤ê¤Þ¤¹¡£

Raspunde prin e-mail lui