Sunday, January 31, 2016

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

2016-01-31 5:32 GMT+03:00 Justin Dearing <zippy1981@gmail.com>:
> 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?

+ebcdic means that *internal encoding* of Vim will be EBCDIC AFAIK.
And by "internal encoding" I mean not &encoding (though this also),
but encoding used by the compiler as well. I do not think this is what
you want.

To edit ebcdic file you need +iconv and you need to know how iconv
names used encoding. E.g. I can edit file using `e ++enc=ebcdicus`,
but `iconv --list | grep --ignore-case ebcdic | wc --lines` shows 77
*EBCDIC* encoding variants. Some look like an aliases to other (like
`ebcdic-us` and `ebcdicus`), but I can't be sure.

>
> --
> --
> 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 vim_use+unsubscribe@googlegroups.com.
> 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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: