diff --git a/unicodetools/src/main/java/org/unicode/props/UnicodeProperty.java b/unicodetools/src/main/java/org/unicode/props/UnicodeProperty.java index ee1ef259b9..9ea7729a76 100644 --- a/unicodetools/src/main/java/org/unicode/props/UnicodeProperty.java +++ b/unicodetools/src/main/java/org/unicode/props/UnicodeProperty.java @@ -952,6 +952,14 @@ private class MyXSymbolTable extends UnicodeSet.XSymbolTable { @Override public boolean applyPropertyAlias( String propertyName, String propertyValue, UnicodeSet result) { + if ((propertyName.equals("C") || propertyName.equals("c")) + && propertyValue.isEmpty()) { + // C matches isc=ISO_Comment, and we are not able to distinguish + // \p{C} (=\p{General_Category=Other}) from \p{C=} (=\p{ISO_Comment=}) here. + // Fall back to ICU, since this symbol table does not implement GC groupings. + // TODO(egg): This symbol table needs to go, see #1073, #1074. + return false; + } if (false) System.out.println(propertyName + "=" + propertyValue); UnicodeProperty prop = getProperty(propertyName); if (prop == null) return false;