Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math symbols & special utf characters not supported on windows #40

Open
szymon-rd opened this issue May 6, 2022 · 0 comments
Open

Math symbols & special utf characters not supported on windows #40

szymon-rd opened this issue May 6, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@szymon-rd
Copy link
Contributor

Github action for windows fails on characters Ą and . Reproduction in tests:

  @Test
  public void testUnicodeIdentifier() {
    String input = "using keyĄ 42";
    UsingDirectives parsedDirective = testCode(1, input);
    assertValueAtPath(parsedDirective, "keyĄ", "42");
  }

Reporter output:

    0:0:
    ERROR: illegal character '\u201e'
    0:0:
    ERROR: Expected new line after the using directive, in the line; but found erroneous token
    illegal character '\u201e'
    Expected new line after the using directive, in the line; but found erroneous token
  @Test
 public void testMathSymbolIdentifier() {
   String input = "using >/∑ 42";
   System.out.println(input);
   UsingDirectives parsedDirective = testCode(1, input);
   assertValueAtPath(parsedDirective, ">/∑", "42");
 }

Reporter output:

    0:0:
    ERROR: Expected primitive value: string, numeric or boolean but found identifier: �. Wrapping identifier in quotes usually solves the problem.
    0:0:
    ERROR: Expected new line after the using directive, in the line; but found identifier: �
@szymon-rd szymon-rd added the bug Something isn't working label May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant