Friday, May 20, 2016

Re: Reproducible issue reading large registry file

Hi 'Suresh!

On Do, 19 Mai 2016, 'Suresh Govindachar' via vim_use wrote:

>
> Steps to reproduce issue:
>
> System: Windows 7 64 bit
>
> Gvim: VIM - Vi IMproved 7.4 (2013 Aug 10,
> compiled Jan 2 2016 14:36:11)
> MS-Windows 32-bit GUI version with OLE support
> Included patches: 1-1023
> Compiled by mool@tororo
> Big version with GUI.
>
> 1) Export entire registry to file (in my case, about 500 MBytes)
>
> 2) gvim.exe -u NONE -U NONE --noplugin all_reg.reg
>
> 3) takes some time and then get message just before file shows up
>
> 4) Observe message before file shows up: "all_reg.reg" [Incomplete
> last line][unix format] 3912091 lines, 523120802 characters
> Press ENTER or type command to continue
>
> 5) Hit enter
>
> 6) Observe contents of buffer:
>
> ÿ[with two dots on the top of it]þ[funny looking p]W^@i^@n^@d^@o^@w^@s
>
> [more such triples: @<readable letter>^]
>
> 7) Open all_reg.reg in notepad++: no issues, file opens very
> quickly, text is clearly seen.
>
> Please look into this.
>
> Thanks,

Please check your encoding. This works for me with an old 7.4 version:
gvim -u NONE -N --noplugin --cmd ":set encoding=utf8" c:\Users\cbrabandt\Documents\all.reg
this one doesn't:
gvim -u NONE -N --noplugin c:\Users\cbrabandt\Documents\all.reg

Also note, you probably need :set fencs=ucs-bom which should be the
default.

Mit freundlichen Grüßen
Christian
--
Freiheit für die Gummibären! Weg mit den Tüten!

--
--
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:

Post a Comment