Ron Aaron wrote:
> > It appears the conversion from cp1255 to utf8 doesn't work correctly,
> > ther result changes when a space is appended.
> > This looks like an iconv problem. Or do you suggest that Vim is doing
> > something wrong?
> Vim is at fault, since I can take the same text as a file, run
> iconv.exe (using the same iconv.dll) and convert it back and forth
> without loss.
I tried it with the iconv program and the iconv function (in a
debugger). It appears the iconv program works OK but the iconv function
doesn't. It simply doesn't convert the last character and does return
zero for success. I can't say anything than that iconv() is faulty.
I can make iconv() work by telling it it's getting one more character,
so that it includes the NUL byte at the end of the string. Another
indication that iconv() is at fault.
My iconv program is using libiconv 1.8, I'm not sure what vim is using
(there is a conflict with libintl that uses another version of the iconv
He was not in the least bit scared to be mashed into a pulp
Or to have his eyes gouged out and his elbows broken;
To have his kneecaps split and his body burned away
And his limbs all hacked and mangled, brave Sir Robin.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Bram@...
/// Creator of Vim - Vi IMproved -- http://www.vim.org
\\\ Project leader for A-A-P -- http://www.a-a-p.org
\\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html