2016-02-01 2:14 GMT+03:00 Eric Christopherson <[email protected]>:
> 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 <[email protected]>
>> 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"
#endif ],
[ # TryCompile action if true
cf_cv_ebcdic=yes ],
[ # TryCompile action if false
cf_cv_ebcdic=no])
: to enable +ebcdic it is necessary that `'0' == 240`. Unfortunately
even C99 does not talk about ASCII (or any specific encoding at all)
in 6.4.4.4 Character constants section, so this thing is permitted by
the standard.
>
> --
> Eric Christopherson
>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.