Closed GoogleCodeExporter closed 9 years ago
That doesn't sound too bad.
Original comment by aohelin
on 21 Dec 2011 at 9:39
Added a rule to Makefile to autogenerate a char mapping based on
http://www.unicode.org/Public/6.0.0/ucd/CaseFolding.txt and lib-string now
exports a unicode-fold-char :: codepoint tail -> (codepoint' ... tail) as in
$ bin/vm fasl/bootp.fasl
You see a prompt
> (list->string (foldr unicode-fold-char null (string->list
"0123456789abcdefghijklmnopqrstuvwxyzåäöABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ
Λλ Ππ Αα Ββ Θθ Ωω Φφ")))
0123456789abcdefghijklmnopqrstuvwxyzåäöabcdefghijklmnopqrstuvwxyzåäö λλ
ππ αα ββ θθ ωω φφ
which can be used for the case insensitive comparisons if it seems to work
properly. I'll have a better look in the evening.
Thanks for pointing this out, and in general for the good bug reports :)
Original comment by aohelin
on 21 Dec 2011 at 10:20
Added -ci comparisons using case folding mentioned above. I'm closing this bug
since a case-insensitive mapping is now added and also used for the
comparisons, but adding string-(fold|up|down)case separate todo items for the
upcoming R7RS feature addition pass.
Original comment by aohelin
on 23 Dec 2011 at 7:41
Original issue reported on code.google.com by
johnwco...@gmail.com
on 21 Dec 2011 at 12:37