On Wed, 10 May 2006 11:16:40 +0200, Bram Moolenaar <[EMAIL PROTECTED]> wrote:


Tomasz Kalkosiñski wrote:

There is a problem when I want to use [[:alpha:]] for regex patterns,
because it is based on LC_CTYPE variable. When it's set to "C" it uses
basic latin1 character set [A-Za-z] and doesn't include polish
characetrs - (±¼æ...). I've tried to set :lang ctype "Polish",
"PL_pl", "pl_PL" - nothing happens - [::alpha::] is still latin1
based. I didn't have this problem with Vim 6.4 (:lang ctype was
"pl_PL" set default).

The [:alpha:] item uses the library function isalpha().  Thus it depends
on how this was implemented.

Vim sets LC_CTYPE to "C" to work around a problem in printf() that may
make Vim crash with non-ASCII text.  This has side effects, but avoiding
a crash is more important.


I solved it by setting lc_ctype to "Polish" in _vimrc. Now it works fine.

Greetings,
Tomasz Kalkosiński

Reply via email to