Sunday, January 31, 2016

Re: Can you edit EBCDIC files on non-OS390 builds of VIM?

2016-02-01 2:14 GMT+03:00 Eric Christopherson <echristopherson@gmail.com>:
> On Sat, Jan 30, 2016, Justin Dearing wrote:
>> I'd like to edit EBCDIC encoded files in VIM on windows vim --version shows this:
>>
>> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 16 2015 08:44:57)
>> Included patches: 1-872
>> Compiled by <alexpux@gmail.com>
>> Huge version without GUI. Features included (+) or not (-):
>> <snip/>
>> -ebcdic +mouse +smartindent -xim
>> <snip/>
>>
>> I cloned the git repo and configure --enable-ebcdic was not an option.
>> Looking at src/auto/configure, it looks like ebcdic support is enabled
>> if ASCII support is not present. Is there an option to turn it on?
>
> Sorry, I don't know the answer to that, but I find it interesting to see
> this question, just a few days after reading a page laying out the case
> for NeoVim -- although I can't find the exact page now, I believe it
> gave EBCDIC support as an example of something that no one would ever
> use Vim for!

Editing EBCDIC files is *not* what EBCDIC support in Vim means. It is
support for compiling and operating on systems where EBCDIC is an
encoding used by the compiler (specifically in string and character
literals). You may see in configure:

AC_TRY_COMPILE([ ],
[ /* TryCompile function for CharSet.
Treat any failure as ASCII for compatibility with existing art.
Use compile-time rather than run-time tests for cross-compiler
tolerance. */
#if '0'!=240
make an error "Character set is not EBCDIC"

No comments:

Post a Comment