This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Unicode::Normalize no-go with miniperl.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 28 Oct 2015 12:32:33 +0000 (08:32 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 28 Oct 2015 23:04:01 +0000 (19:04 -0400)
Unicode::Normalize comes in via Unicode::UCD, which comes in e.g.
via uni/case.pl.

Tried using test.pl and its skip_all_if_miniperl() in all cases,
but that leads into weird failures in full 'make test'.

t/uni/fold.t
t/uni/lower.t
t/uni/title.t
t/uni/upper.t

index 149573a..1a7e865 100644 (file)
@@ -9,6 +9,7 @@ BEGIN {
     require './test.pl';
     set_up_inc('../lib');
     skip_all_without_unicode_tables();
+    skip_all_if_miniperl("miniperl, no Unicode::Normalize");
     require Config; import Config;
     require './charset_tools.pl';
     require './loc_tools.pl';   # Contains find_utf8_ctype_locale()
index 1301b48..31fd1f7 100644 (file)
@@ -1,5 +1,9 @@
 BEGIN {
     chdir 't' if -d 't';
+    unless (defined &DynaLoader::boot_DynaLoader) {
+      print("1..0 # miniperl: no Unicode::Normalize");
+      exit(0);
+    }
     require "uni/case.pl";
 }
 
index 35c4f77..458ca8e 100644 (file)
@@ -1,5 +1,9 @@
 BEGIN {
     chdir 't' if -d 't';
+    unless (defined &DynaLoader::boot_DynaLoader) {
+      print("1..0 # miniperl: no Unicode::Normalize");
+      exit(0);
+    }
     require "uni/case.pl";
 }
 
index 41b235c..532f4bd 100644 (file)
@@ -1,5 +1,9 @@
 BEGIN {
     chdir 't' if -d 't';
+    unless (defined &DynaLoader::boot_DynaLoader) {
+      print("1..0 # miniperl: no Unicode::Normalize");
+      exit(0);
+    }
     require "uni/case.pl";
 }