summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-16 02:27:51 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-16 02:27:51 +0000
commit035d37be8456f0df63748a1c95063999b5824c09 (patch)
treee27eae017f7f42cd8bddffa1cec291c030b153b6 /utf8.c
parent52d72fba699bcf7fedd294a01c1a7481f6cfddd5 (diff)
downloadperl-035d37be8456f0df63748a1c95063999b5824c09.tar.gz
Document the problem with the swash_fetch() API that affects
more complex case conversions. p4raw-id: //depot/perl@12450
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/utf8.c b/utf8.c
index e1a7e631a7..0c094697e7 100644
--- a/utf8.c
+++ b/utf8.c
@@ -1281,6 +1281,12 @@ Perl_swash_init(pTHX_ char* pkg, char* name, SV *listsv, I32 minbits, I32 none)
return retval;
}
+
+/* This API is wrong for special case conversions since we may need to
+ * return several Unicode characters for a single Unicode character
+ * (see lib/unicore/SpecCase.txt) The SWASHGET in lib/utf8_heavy.pl is
+ * the lower-level routine, and it is similarly broken for returning
+ * multiple values. --jhi */
UV
Perl_swash_fetch(pTHX_ SV *sv, U8 *ptr, bool do_utf8)
{