Skip to content

Commit 78cd8d3

Browse files
committed
Other=ISO_Comment
1 parent c60a326 commit 78cd8d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

unicodetools/src/main/java/org/unicode/props/UnicodeProperty.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,13 @@ private class MyXSymbolTable extends UnicodeSet.XSymbolTable {
952952
@Override
953953
public boolean applyPropertyAlias(
954954
String propertyName, String propertyValue, UnicodeSet result) {
955+
if (propertyName.equals("C") && propertyValue.isEmpty()) {
956+
// C matches isc=ISO_Comment, and we are not able to distinguish
957+
// \p{C} (=\p{General_Category=Other}) from \p{C=} (=\p{ISO_Comment=}) here.
958+
// Fall back to ICU, since this symbol table does not implement GC groupings.
959+
// TODO(egg): This symbol table needs to go, see #1073, #1074.
960+
return false;
961+
}
955962
if (false) System.out.println(propertyName + "=" + propertyValue);
956963
UnicodeProperty prop = getProperty(propertyName);
957964
if (prop == null) return false;

0 commit comments

Comments
 (0)