Christian Brabandt wrote:
> On Mi, 20 Jul 2016, Danek Duvall wrote:
>
> > Bram Moolenaar wrote:
> >
> > > Hisashi Fujinaka wrote:
> > >
> > > > On Wed, 20 Jul 2016, Bram Moolenaar wrote:
> > > >
> > > > >
> > > > > Patch 7.4.2084
> > > > > Problem: New digraph test makes testing hang.
> > > > > Solution: Don't set "nocp".
> > > > > Files: src/testdir/test_digraph.vim
> > > >
> > > > This is breaking things on MacOS. Do you need a log file?
> > >
> > > Well, the test is passing for me. Better is if you can make it pass.
> > > Try commenting-out some lines (or nearly all the lines) to see what
> > > causes the problem.
> >
> > There seem to be issues when running the test in the C locale. I'm getting
> > a bunch of lines like the following (copy/pasted, so somewhat corrupted):
> >
> > function RunTheTest[9]..Test_digraphs line 5: Expected '¿' but got 'â'
> > function RunTheTest[9]..Test_digraphs line 10: Expected 'þ' but got 'þ'
> >
> > (depending on whether I view test.log in utf8 or latin1, one or the other
> > will be correct).
> >
> > If I put "set encoding=utf-8" right before the "scriptencoding" line (like
> > many other tests do), it works.
>
> I don't understand that. It is setting encoding=utf-8 in each function
> already. That shouldn't make a difference.
The encoding is different when the script is sourced and the functions
are defined. If 'encoding' is latin-1, then conversion from utf-8 to
latin-1 will drop information. That is, some characters can be
converted and then switching to utf-8 turns them into illegal bytes.
You could try this out by adding a comment to each line with an utf-8
character that can't be converted to latin-1. Not sure if that works
and it will be really ugly.
--
BLACK KNIGHT: I move for no man.
ARTHUR: So be it!
[hah] [parry thrust]
[ARTHUR chops the BLACK KNIGHT's left arm off]
ARTHUR: Now stand aside, worthy adversary.
BLACK KNIGHT: 'Tis but a scratch.
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" 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_dev" 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.