Monday, October 4, 2021

Re: opening utf-16 fileencoded ucs-2 Little Endian

Hi,

Christian Brabandt schrieb am 04.10.2021 um 12:44:
>
> On Mo, 04 Okt 2021, Ni Va wrote:
>
>> No error message but I don't happen to read the file.
>
> And you did use ':e! ++enc=utf16le' for the already loaded file? Because
> with this exact same command, I can reload the loaded file perfectly.
>
> Alternatively, try to add utf16le to the (global) fileencodings
> settings. But you need to add it before utf-8 I believe. So this should
> also work:
>
> ':set fencs=ucs-bom,utf16le,utf-8,latin9'
>
> But I am not sure, if this will not break for utf-8 files, so I tend to
> only explicitly re-load files using the `:e ++enc ` command

this will probably break utf-8 files without BOM. With BOM they would be
correctly detected by ucs-bom. Without a BOM all or almost all utf-8 files
can be interpreted as utf-16 -- even those with an odd number of bytes; in
this case Vim puts out a conversion error, but loads the file anyway. Even
incomplete surrogate pairs don't seem to prevent Vim from loading the file
as utf-16.

Better put utf16le after utf-8, because a misinterpretation of utf16 (both
little endian and big endian) can be detected by Vim.

But then you will probably run into the same dilemma with utf-16 and
latin9 ... :-(

Regards,
Jürgen

--
~
~
~
:wq

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/6282c4d4-9137-5a70-bea5-ea1a7a818216%40googlemail.com.

Re: opening utf-16 fileencoded ucs-2 Little Endian

Ok it works perfectly.

Thank you Christian.
Nicolas

Le lun. 4 oct. 2021 à 12:44, Christian Brabandt <cblists@256bit.org> a écrit :

On Mo, 04 Okt 2021, Ni Va wrote:

> No error message but I don't happen to read the file.

And you did use ':e! ++enc=utf16le' for the already loaded file? Because
with this exact same command, I can reload the loaded file perfectly.

Alternatively, try to add utf16le to the (global) fileencodings
settings. But you need to add it before utf-8 I believe. So this should
also work:

':set fencs=ucs-bom,utf16le,utf-8,latin9'

But I am not sure, if this will not break for utf-8 files, so I tend to
only explicitly re-load files using the `:e ++enc ` command

BTW: please do not send screenshot files. I am using a text based mail
client, which makes it unnecessary hard to get the information.

Best,
Christian
--
Kalkulierter Gedächtnisverlust ist in der Politik ein
Überlebensmittel.
                -- Hans Maier

--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/92aX9rHFCeE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20211004104411.GB1619457%40256bit.org.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAOKxv4EPBF1xGgHxtDgk%3DZJ1jmWNOQsne-dK7JFt%2BdnV3R15zg%40mail.gmail.com.

Re: opening utf-16 fileencoded ucs-2 Little Endian

On Mo, 04 Okt 2021, Ni Va wrote:

> No error message but I don't happen to read the file.

And you did use ':e! ++enc=utf16le' for the already loaded file? Because
with this exact same command, I can reload the loaded file perfectly.

Alternatively, try to add utf16le to the (global) fileencodings
settings. But you need to add it before utf-8 I believe. So this should
also work:

':set fencs=ucs-bom,utf16le,utf-8,latin9'

But I am not sure, if this will not break for utf-8 files, so I tend to
only explicitly re-load files using the `:e ++enc ` command

BTW: please do not send screenshot files. I am using a text based mail
client, which makes it unnecessary hard to get the information.

Best,
Christian
--
Kalkulierter Gedächtnisverlust ist in der Politik ein
Überlebensmittel.
-- Hans Maier

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20211004104411.GB1619457%40256bit.org.

Re: opening utf-16 fileencoded ucs-2 Little Endian

2021/10/01 15:00:53.4152 | Debug | connection au pipe ...
2021/10/01 15:00:57.1651 | Debug | Connect?
2021/10/01 17:09:54.3641 | Debug | Close effectu?
2021/10/01 17:09:54.3798 | Debug | Dispose effectu?
Hi Christian,

No error message but I don't happen to read the file.





Here is an example file joined.

Thank you.
Nicolas

Le lun. 4 oct. 2021 à 11:25, Christian Brabandt <cblists@256bit.org> a écrit :

On Fr, 01 Okt 2021, Ni Va wrote:

> Already tested, no more result.

I am not sure what you are trying to say. FWIW: a regular UTF16 file
usually comes with a BOM, which allows Vim to detect the encoding
properly. If I use a testfile without a BOM I still can successfully
load it using `:e! ++enc=utf16le`

If this does not work for you can you please show an example file? Or do
you see any error message?

Best,
Christian
--
Besser heimlich schlau als unheimlich blöd.

--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/92aX9rHFCeE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20211004092518.GA1619457%40256bit.org.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAOKxv4FgkoEpOmdt4ktsMaoxBHGrvUxw_ocykS6a%3Dfv_ZeT84g%40mail.gmail.com.

Re: Sort lines, then tag, then unsort



On Sun 19. Sep 2021 at 16:29, 'Paul' via vim_use <vim_use@googlegroups.com> wrote:


Will marks suffice?

Thanks for your message.

Not sure, can you apply the same mark, i.e. "h", to multiple lines? I don't think so but I'm not 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAEsMKX2%2B20kY6SY3r5zHcTzq969ih9WFtQGxpwH2yfB%3D_EvObQ%40mail.gmail.com.

Re: Manual join function and encoding

hi,

On Mon, 4 Oct 2021 at 10:10, Julius Hamilton
<juliushamilton100@gmail.com> wrote:
> ... the end of line character "$"? ...

there is no "real" character, its conceptual, the end of line
"anchor". try 'cat file.txt' vs 'cat -A file.txt' for illustration.

--
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAM-dBgrqTM%2B6yUtJtpeuH7NokOnBuoECCWBM-zA4X4H2c%3DyDgA%40mail.gmail.com.

Re: opening utf-16 fileencoded ucs-2 Little Endian

On Fr, 01 Okt 2021, Ni Va wrote:

> Already tested, no more result.

I am not sure what you are trying to say. FWIW: a regular UTF16 file
usually comes with a BOM, which allows Vim to detect the encoding
properly. If I use a testfile without a BOM I still can successfully
load it using `:e! ++enc=utf16le`

If this does not work for you can you please show an example file? Or do
you see any error message?

Best,
Christian
--
Besser heimlich schlau als unheimlich blöd.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20211004092518.GA1619457%40256bit.org.