Tomasz Kalkosiñski wrote: > I've removed my Vim 6.4 completly and installed full 8 MB Vim7 for > Windows XP. I'm from Poland and with default configuration Vim7 sets > almost everything correctly - encoding cp1250, keyboard mapping is ok. > :lang shows "Polish" for every variable, except "LC_CTYPE=C". > > 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. The argument for ":lang" depends on the system. You may have to try different values. I don't know where this is documented. For Unix I can use "locale -a", I don't know what the equivalent is for MS-Windows. -- >From "know your smileys": :^[/ mean-smiley-with-cigarette /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
