guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Buggy predicates in chars.c?


From: Daniel Skarda
Subject: Buggy predicates in chars.c?
Date: 28 Jul 2001 15:12:32 +0000
User-agent: Gnus/5.0806 (Gnus v5.8.6) Emacs/20.6

Hello,

  I noticed that many tests in chars.c (for example char-alphabetic?,
  char-lower-case?) do not call only appropriate functions from ctype.c, but
  they call also `isascii' - and this does not lead to correct results
  (at least on my computer).

  According to man page, isascii 

    "checks whether c is a  7-bit  unsigned  char  value
     that fits into the ASCII character set...."
 
  For example in Czech locale '\370' (TeX: \v r) is alphabetic character
  (for LC_CTYPE=cs_CZ isalpha('\370' == 1)) but it is not 7-bit unsigned char
  (isascii returns 0).

  Thus `char-alphabetic?' and `isalpha' return different results. Is this
  intentional or is it bug?

D.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]