Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use a more correct definition of CCLASS_WHITESPACE for the JVM
  • Loading branch information
sorear committed Jun 7, 2013
1 parent 3887f45 commit 3382c85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -2606,7 +2606,10 @@ public static long iscclass(long cclass, String target, long offset) {
case CCLASS_NUMERIC:
return Character.isDigit(test) ? 1 : 0;
case CCLASS_WHITESPACE:
return Character.isWhitespace(test) ? 1 : 0;
if (Character.isSpaceChar(test)) return 1;
if (test >= '\t' && test <= '\r') return 1;
if (test == '\u0085') return 1;
return 0;
case CCLASS_PRINTING:
throw new RuntimeException("CCLASS_PRINTING NYI");
case CCLASS_WORD:
Expand Down

0 comments on commit 3382c85

Please sign in to comment.