On 11/12/13 18:25, Axel Bender wrote:
@LCD 47
Well, that's a good question. However, the behavior should be consistent
between the two RE engines and should not depend on a setting like ignorecase.
@Bram
Lazy, hmm. Wouldn't believe that given the speed you deliver updates ;-)
The test file contains some normal text (with "i"s), UTF-8.
When calling vi with -i NONE -N -u NONE --noplugin -U NONE the following
commands result in #4 finding characters in the test file that are not found by
#s 1 to 3.
... +"set enc=utf-8 fencs=ucs-bom,utf-8,latin" +"so re1.so"
... +"set enc=utf-8 fencs=ucs-bom,utf-8,latin" +"so re2.so"
... +"set ignorecase enc=utf-8 fencs=ucs-bom,utf-8,latin" +"so re1.so"
... +"set ignorecase enc=utf-8 fencs=ucs-bom,utf-8,latin" +"so re2.so"
where re1.so/re2.so (both UTF-8) contain
set re=1 set re=2
/[Ā-Ȁ] /[Ā-Ȁ]
respectively.
The version is 7.4-122 (sorry) on Windows 7, 64 bit (hence re1.so and re2.so).
What does 64 bit have to do with it? (IOW, why "hence"?) Also, I suppose
using filenames re1.so and re2.so rather than re1.vim and re2.vim makes
no difference, but filename.so is usually a binary filetype (Unix-like
"shared object", of similar use as Windows's DLLs). For instance the
"big library" containing most of a Mozilla browser or mailer's binary
code nowadays is called xul.dll on Windows and libxul.so on Linux.
AFAIK, character ranges in patterns are based on the Unicode codepoint
ordinal value (at least that's what I would expect) and cannot exceed a
range of 257 characters (IIRC the results of experiments done some time
ago with ranges of East-Asian characters).
Is "latin" a valid encoding? I would expect a digit after it, as in
"latin1". The iconv utility on my machine knows a number of encodings
containing LATIN but always with something before or after or both. See
also ":help encoding-values" but the list is not exhaustive: with iconv
installed and a Vim with +iconv compiled-in, anything known by iconv can
be used by Vim.
Best regards,
Tony.
--
I'd like to meet the man who invented sex and see what he's working on now.
--
--
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/groups/opt_out.