[ansi-test-devel] both-case-p and Unicode titlecase?

Sam Steingold sds at gnu.org
Fri Apr 16 13:43:18 UTC 2010


On 4/16/10, Raymond Toy <toy.raymond at gmail.com> wrote:
> What do other implementations do with characters like
>  Greek_Capital_Letter_Omega_With_Prosgegrammeni?
>
>  In cmucl, this character is both-case-p, but is not lower-case-p and is
>  not upper-case-p.  Instead, it is title-case-p.  char-downcase returns
>  #\Greek_Small_Letter_Omega_With_Ypogegrammeni.

[1]> #\Greek_Capital_Letter_Omega_With_Prosgegrammeni
#\GREEK_CAPITAL_LETTER_OMEGA_WITH_PROSGEGRAMMENI
[2]> (both-case-p #\Greek_Capital_Letter_Omega_With_Prosgegrammeni)
T
[3]> (char-downcase #\Greek_Capital_Letter_Omega_With_Prosgegrammeni)
#\GREEK_SMALL_LETTER_OMEGA_WITH_YPOGEGRAMMENI
[4]> (char-upcase #\Greek_Capital_Letter_Omega_With_Prosgegrammeni)
#\GREEK_CAPITAL_LETTER_OMEGA_WITH_PROSGEGRAMMENI
[5]> (lower-case-p #\Greek_Capital_Letter_Omega_With_Prosgegrammeni)
NIL
[6]> (upper-case-p #\Greek_Capital_Letter_Omega_With_Prosgegrammeni)
T
[7]> (char-upcase #\GREEK_SMALL_LETTER_OMEGA_WITH_YPOGEGRAMMENI)
#\GREEK_CAPITAL_LETTER_OMEGA_WITH_PROSGEGRAMMENI
[8]>


>  Issues like this cause cmucl to fail both-case-p.2 test.

clisp passes.

-- 
Sam Steingold <http://sds.podval.org>




More information about the ansi-test-devel mailing list