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

Epsilon doesn't handle arguments because of strcmp #1695

Open
RedGl0w opened this issue Oct 28, 2020 · 0 comments · May be fixed by #1696
Open

Epsilon doesn't handle arguments because of strcmp #1695

RedGl0w opened this issue Oct 28, 2020 · 0 comments · May be fixed by #1696

Comments

@RedGl0w
Copy link
Contributor

RedGl0w commented Oct 28, 2020

Describe the bug

My computer uses an implementation of strcmp() which will return -1 if the string is lower, 0 if it is egal, or 1 greater (and it corresponds to the c norm).
image
The issue of that is epsilon main wants a function which will return the difference of chars (like it is implemented here).
The execution arguments doesn't work at all for me, because of that requirement.

Screenshots

By adding before this line that line :

std::cout << argv[i] << " " << appNames[j] << " " << cmp << std::endl;

here is what is outputed :
image

Expected behavior

I would expect args to work.

Environment

  • Epsilon master
  • The platform(s) on which the problem happens: arch linux with gcc 10.2.0
RedGl0w added a commit to RedGl0w/epsilon that referenced this issue Oct 28, 2020
@RedGl0w RedGl0w linked a pull request Oct 28, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant