[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] 0.1088-Linux: new strange problem with strings and char
From: |
Sven Hartrumpf |
Subject: |
[Chicken-users] 0.1088-Linux: new strange problem with strings and characters |
Date: |
Tue, 07 Jan 2003 10:18:17 +0100 (CET) |
Hi. Some versions ago the following problem was introduced into chicken.
The second result is surprising:
> bugchicken.scm
#t
#f
>
bugchicken.scm:
------
#! /usr/local/bin/csi -script
(define char-upper-case-8? (lambda (c)
(or (and (char>=? c #\A)
(char<=? c #\Z))
(and (char>=? c #\À)
(char<=? c #\Þ)
(not (= (char->integer c) 215)))))) ; relies on ISO 8859
(display (char-upper-case-8? #\Ü))(newline)
(display (char-upper-case-8? (string-ref "Ü" 0)))(newline)
------
Ciao
Sven
- [Chicken-users] 0.1088-Linux: new strange problem with strings and characters,
Sven Hartrumpf <=