+ if (options[ICUDATADIR].doesOccur) {
+ u_setDataDirectory(options[ICUDATADIR].value);
+ }
+
+ /*
+ * Verify that we can work with properties
+ * but don't call u_init() because that needs unorm.icu which we are just
+ * going to build here.
+ */
+ {
+ U_STRING_DECL(ideo, "[:Ideographic:]", 15);
+ USet *set;
+
+ U_STRING_INIT(ideo, "[:Ideographic:]", 15);
+ set=uset_openPattern(ideo, -1, &errorCode);
+ if(U_FAILURE(errorCode) || !uset_contains(set, 0xf900)) {
+ fprintf(stderr, "gennorm is unable to work with properties (uprops.icu): %s\n", u_errorName(errorCode));
+ exit(errorCode);
+ }
+ uset_close(set);
+ }
+