Re: Out of memeory error at UTF-8 editing
- After I added these entries explicitly in my .vimrc,
the dreadful phenomenon disappeared.
My guess is iconv bug or that of its calling procedure
on Vim side. ...Kind of an infinite search making an huge
Bram Moolenaar wrote:
> Hiroshi Iwatani wrote:--
>>I can't pin-point the exact characteritics of the document but some type
>>of UTF-8 text file(*) with mixed English and Japanese content displays
>>the <xx><yy> forms for non-English characters, and after a few moments,
>>Out of memory (4294967248 bytes requested) --- actually in Japanese
>>then gvim hangs.
>>I use Vim 6.3.062 on Fedora Core 3 with Gnome desktop.
>>(*:e.g. An old .vimrc file converted to UTF-8 which gedit and OpenOffice
>>can handle normally.)
>>Will you give some help if you could.
> I'm afraid I have no clue why this would happen. Best is to compile Vim
> for debugging, run it in a debugger and find out where that error
> message is produced.
*stop cruelty* Annual number of institutionally euthanized cats and dogs
including kittens and puppies: US 5 million, JP 500 thousand. How about
your country? *for our better karma*
- Hiroshi Iwatani wrote:
> After I added these entries explicitly in my .vimrc,It's indeed possible that there is a problem with conversion. Can you
> the dreadful phenomenon disappeared.
> set encoding=japan
> set fileencodings=utf-8,euc-jp,sjis
> My guess is iconv bug or that of its calling procedure
> on Vim side. ...Kind of an infinite search making an huge
> search space?...
see what the values for 'encoding' and 'fileencodings' are when the
problem appears? Does it only happen when you edit a file? Did you try
skipping loading of plugins?
There is a fine line between courage and foolishness.
Unfortunately, it's not a fence.
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///