Le jeudi 7 décembre 2017 17:02:09 UTC+1, Tony Mechelynck a écrit :
> On Thu, Dec 7, 2017 at 3:44 PM, Ni Va <nivaemail@gmail.com> wrote:
> > Le jeudi 7 décembre 2017 00:59:53 UTC+1, dwierenga a écrit :
> >> On Wed, Dec 6, 2017 at 3:18 PM, Ni Va <niva...@gmail.com> wrote:
> >> Yes thank you Tony and Mr Gentis,
> >>
> >>
> >>
> >> Enter chcp under windows console return 850 so you're right Tony.
> >>
> >> So i can try to redirect robocopy's output even if it is so far of my idea ( getting output data live at runtime)
> >>
> >>
> >>
> >>
> >>
> >>
> >> robocopy.exe has an explicit /UNICODE flag to control the output encoding. You may want to try that before re-architecting your process to deal with redirected output.
> >
> >
> > For the moment it works with my output showmessages func fixed.
> >
> > function! sequencerutil#showmessages() abort " {{{
> > let debug_file=tempname()
> > exe 'redir! > ' . debug_file .'|silent messages|redir END'
> > call setqflist(readfile(debug_file))
> > set encoding=cp850
> > copen
> > endfunc "}}}
> >
> >
> >
> > Nota : /UNILOG option causes errors combined with /MIR that I need
>
> Changing 'encoding' anywhere other than your vimrc (which is sourced
> before loading the first editfile) can have disastrous results,
> because it changes how the contents of all text in Vim memory is
> interpreted but it doesn't reload any files already in memory. If at
> that moment you already have another file loaded (a help file, maybe:
> some of them, including options.txt for the 'langmap' example, are in
> "true" UTF-8) it could become hopelessly garbled.
>
> Alas, ":copen" doesn't accept a ++enc modifier.
>
> Best regards,
> Tony.
I understand and saw disastrous chinese results yesterday.. :) hopefully I had a 7z of my Vi distribution :)
So, if copen does not accept ++enc modifier which way can I take to modify only copened tempfile ?
--
--
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.
Thursday, December 7, 2017
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment