locale.t: Add TODO tests
authorKarl Williamson <public@khwilliamson.com>
Mon, 31 Dec 2012 03:39:37 +0000 (20:39 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 31 Dec 2012 18:03:28 +0000 (11:03 -0700)
commit3da38613a3e506474535e2f53bc1f1cf8606ebca
treeab81d259282dca21be351fb11bdaacbf913f6a8a
parentbaa71cfd7d0dc1450df3a6e8b46877d839f20bb1
locale.t: Add TODO tests

It turns out that Perl has always assumed that the Posix character
classes are closed under folding.  For example, if a character is in
[:alpha:], its fold will be in [:alpha:] as well.

This seems like a reasonable assumption except for two classes, where it
is almost certainly wrong.  If a character matches [:upper:], its fold
likely won't.  Same for [:lower:].  What this means is that a regex of
the form

    /[[:lower:]]/i

has never properly matched the uppercased versions of the characters in
the target string.

This commit adds TODO tests for these.
lib/locale.t