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

Definition of decimal separator #6

Open
tferr opened this issue Feb 21, 2023 · 1 comment
Open

Definition of decimal separator #6

tferr opened this issue Feb 21, 2023 · 1 comment

Comments

@tferr
Copy link

tferr commented Feb 21, 2023

@bengtl, We had recently a report of an SWC file saved in a locale that uses the comma as a decimal separator. The file failed to import but was otherwise valid. It would be useful to have an official stance on this:

  1. Are commas allowed as a decimal separator?
  2. Are commas allowed as a thousand separator?

Although most of the world used commas as a decimal separator, this was the first time we came across this issue, so I would argue that their adoption is rare. I would advise to never use them in SWC files. Supporting them would just increase the complexity of parsers.

While at it, what about new line encoding? I am assuming \n is the standard!? This is of lower importance since most text editors support both \r\n and \n, but it may be useful to also discuss this.

@bengtl
Copy link
Collaborator

bengtl commented Feb 27, 2023

Thank you Tiago for your input. We agree that commas as decimal or thousand separators should never be allowed. We will add this to the standard.

When it comes to line separator, we will leave that open for the time being, but informally, we encourage using only \n.

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

2 participants