2016-04-25 5:03 GMT+09:00 Bram Moolenaar <[email protected]>:
> I do not see a clue why this would be different on OS/X.

As the failure message above indicates, it looks the functions isalpha(),
isalnum() and ispunct() of OS X accept a wider range of 8-bit characters as
class members.  In other words, in contrast to Linux, these functions don't
assume the standard C locale to determine their behaviors.

While Linux's man page talks about the C locale (
http://linux.die.net/man/3/isalpha), OS X's man page doesn't mention about
it (
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/isalpha.3.html
).

Actually, when I ran the test like this:

    $ LC_CTYPE=C make test_alot_utf8

then the test succeeded.

So, I feel we need to add something like this to test_regexp_utf8.vim
(please see the attached patch for details, because it contains a long
string):

if has('osx')
  lang ctype C
endif

But I'd rather like to wait for a day or two for someone with a better
explanation and solution :-)

Best regards,
Kazunobu Kuriyama

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

Attachment: test_regexp_utf8.vim.patch
Description: Binary data

Raspunde prin e-mail lui