Bram Moolenaar wrote:

> Raf wrote:
> 
> > > > > Test results:
> > > > > test83 FAILED
> > > > > TEST FAILURE
> > > >  
> > > > the same test fails on ubuntu-11.04 with gcc-4.5.2
> > > 
> > > I don't see this problem.  I can't guess why it fails for you.
> > > There are multi-byte characters in the file, are they showing up
> > > correctly?  These are double-wide ABC.
> > > Also check the temporary files are cleaned up.
> > 
> > when viewed using gvim -u NONE -U NONE,
> > the file test83-tags2 contains a tag that looks like "<82>`<82>a<82>b"
> > the file test83-tags3 contains search patterns that look the same.
> > the file test83.in contains a :tag command whose argument looks like:
> > 
> >   forward slash
> >   fullstop/period/dot
> >   lower case i umlaut
> >   1/4 character
> >   cent character
> >   lower case i umlaut
> >   1/4 character
> >   pound sign
> > 
> > the four subsequent occurrences of high-bit/multi-byte characters
> > all look like:
> > 
> >   lower case i umlaut
> >   1/4 character
> >   upside down exclamation mark
> >   lower case i umlaut
> >   1/4 character
> >   cent character
> >   lower case i umlaut
> >   1/4 character
> >   pound sign
> > 
> > the file Xtags2.txt also looks like that.
> 
> Ehm, this is not easy to understand.  Did you check 'encoding' and
> 'fileencoding' to have sane values?  Then you can use "ga" and "g8" to
> find out what the characters actually are.

encoding and fileencoding are both utf-8 in all three files.
with ga and g8 the sequence of characters in the tags files are:

ga:
<<82>> 130, Hex 0082, Octal 202
<`>  96,  Hex 60,  Octal 140
<<82>> 130, Hex 0082, Octal 202
<a>  97,  Hex 61,  Octal 141
<<82>> 130, Hex 0082, Octal 202
<b>  98,  Hex 62,  Octal 142

g8:
c2 82
60
c2 82
61
c2 82
62

the sequence of characters in test83.in in the :tag command (line 38) that look 
like:

 lower case i umlaut
 1/4 character
 cent character
 lower case i umlaut
 1/4 character
 pound sign

are:

ga:
<ï> 239, Hex 00ef, Octal 357
<¼> 188, Hex 00bc, Octal 274
<¢> 162, Hex 00a2, Octal 242
<ï> 239, Hex 00ef, Octal 357
<¼> 188, Hex 00bc, Octal 274
<£> 163, Hex 00a3, Octal 243

g8:
c3 af
c2 bc
c2 a2
c3 af
c2 bc
c2 a3

> In case of doubt, set 'encoding' to "latin1" and edit each file with ":e
> ++enc=latin1", then no conversion will happen when reading the file and
> you can inspect the individual bytes with "ga".

doing this, the characters in test83.in in the :tag command (line 38) are:

ga:
<M-C>  195,  Hex c3,  Octal 303 (capital A tilde accent)
<M-/>  175,  Hex af,  Octal 257 (horizontal line where an acute accent might be)
<M-B>  194,  Hex c2,  Octal 302 (capital A with circonflex accent)
<M-<>  188,  Hex bc,  Octal 274 (1/4 character)
<M-B>  194,  Hex c2,  Octal 302 (capital A with circonflex accent)
<M-">  162,  Hex a2,  Octal 242 (cent character)
<M-C>  195,  Hex c3,  Octal 303 (capital A with tilde accent)
<M-/>  175,  Hex af,  Octal 257 (horizontal line where an acute accent might be)
<M-B>  194,  Hex c2,  Octal 302 (capital A with circonflex accent)
<M-<>  188,  Hex bc,  Octal 274 (1/4 character)
<M-B>  194,  Hex c2,  Octal 302 (capital A eith circonflex accent)
<M-#>  163,  Hex a3,  Octal 243 (pound sign)

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

Raspunde prin e-mail lui