But, this way, how can Vim rollback if the conversion fails? Undoing
everything in reverse order? IMHO, the 'writebackup' option should be
ignored when a character encoding conversion is needed. Warning the user
when that fails.
Em 17/05/2012 08:09, "Benjamin R. Haskell" <[email protected]> escreveu:

> On Thu, 17 May 2012, Christian Brabandt wrote:
>
>  Hi Benjamin!
>>
>> On Mi, 16 Mai 2012, Benjamin Fritz wrote:
>>
>>  Is there a reason we couldn't do the encoding conversion in memory, and
>>> if it succeeds, only then open the file to write the data? That seems like
>>> the sanest way to do things. Only open the file when you
>>>
>>
>> Well, I wouldn't rather not have 2 copies of the buffer in memory.
>>
>
> Surely there's a way to "do the encoding conversion in memory" without
> creating a full copy of the buffer.  Just running through the buffer
> character-by-character, or line-wise, and ensuring that all characters can
> be encoded using &fenc should work.
>
> --
> Best,
> Ben H
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit 
> http://www.vim.org/maillist.**php<http://www.vim.org/maillist.php>
>

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to