Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

ASCII only word , ignore case , Character class #264

@tonco-miyazawa

Description

@tonco-miyazawa

This is Applied commit 50cdc3e .

-------- /test/test_utf8.c -------

  // Issue #264
  n("(?iI)s", "\xc5\xbf");
  n("(?iI)[s]", "\xc5\xbf");    // FAIL

  n("(?iI:s)", "\xc5\xbf");
  n("(?iI:[s])", "\xc5\xbf");    // FAIL

  x2("(?iI)(?:[[:word:]])", "\xc5\xbf", 0, 2);
  n("(?iI)(?W:[[:word:]])", "\xc5\xbf");     // FAIL

  n("(?iI)(?W:\\w)", "\xc5\xbf");
  n("(?iI)(?W:[\\w])", "\xc5\xbf");     // FAIL

  n("(?iI)(?W:\\p{Word})", "\xc5\xbf");
  n("(?iI)(?W:[\\p{Word}])", "\xc5\xbf");     // FAIL

  /* Are these specifications? or bugs? All these results are "OK". */
  x2("(?i)(?W:[[:word:]])", "\xc5\xbf", 0, 2);
  n("(?i)(?W:\\p{Word})", "\xc5\xbf");
  n("(?i)(?W:\\w)", "\xc5\xbf");
  x2("(?i)(?W:[\\w])", "\xc5\xbf", 0, 2);

  /* These are Works fine. */
  n("(?I)(?W:[[:word:]])", "\xc5\xbf");
  n("(?W:[[:word:]])", "\xc5\xbf");
  x2("(?i)s", "\xc5\xbf", 0, 2);
  x2("(?i)[s]", "\xc5\xbf", 0, 2);

I think these are bugs, but I'm sorry if they are different.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions