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

realm-cli push has issues with UTF-8 characters #337

Open
jonshipman opened this issue Sep 14, 2023 · 1 comment
Open

realm-cli push has issues with UTF-8 characters #337

jonshipman opened this issue Sep 14, 2023 · 1 comment

Comments

@jonshipman
Copy link

  • pulled application with a function that has utf characters
  • pushed function to another application
  • push fails
push failed: Error in functions:
- latlong: unknown: Unexpected character '�'. (642:69)

Push appears to only fail when attempting to upload a custom_resolver/*.json file whose resolver function calls the offending function.

@jonshipman
Copy link
Author

jonshipman commented Sep 14, 2023

Checking the function shows that the character at 642:69 is Δ
Of note, this character appears several times in the function and ream-cli push only complains about this line.

const Δλ = λ2 - λ1;

const x = Math.sin(φ1) * Math.cos(φ2) * Math.cos(φ) * Math.sin(Δλ);
const y =
  Math.sin(φ1) * Math.cos(φ2) * Math.cos(φ) * Math.cos(Δλ) -
  Math.cos(φ1) * Math.sin(φ2) * Math.cos(φ);
const z = Math.cos(φ1) * Math.cos(φ2) * Math.sin(φ) * Math.sin(Δλ);

Line 642 would be the last line in the block above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant