reassign 441785 vim
retitle 441785 vim's POSIX regexp classes don't honour LC_CTYPE properly
thanks

also sprach Sven Bischof <[EMAIL PROTECTED]> [2007.09.11.1010 +0200]:
> Umlauts break syntax highlighting.
> 
> $ locale
> LANG=en_US
> LC_CTYPE=zh_CN.UTF8

It appears to me as if this is a bug in vim, which does not include
a character such as ä in the class [[:alpha:]]. However, with
a Unicode charset, [[:alpha:]] seems to be defined to include any
"kind of letter from any language"

  http://www.regular-expressions.info/posixbrackets.html
  http://www.regular-expressions.info/unicode.html

See this:

  $ export LC_CTYPE=zh_CN.UTF8
  $ echo a > a
  $ echo ä > ä
  $ file a ä
  a: ASCII text
  ä: UTF-8 Unicode text
  $ grep '[[:alpha:]]' a ä
  a:a
  ä:ä
  $ vim -es +'argdo g/[[:alpha:]]' +':q!' a ä
  a

The problem is the same if I use the de_CH.UTF8 locale.

Thanks,

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to